2.13.1
win10/chrome79.0.3945.79
2.6.11
https://codepen.io/chenxch/pen/ExVvjob
1、点击tooltip包裹的按钮
2、处理弹出框,取消或者确定
3、按钮的tooltip就自动出现了
confirm处理后,tooltip不要自动focus当初提示
confirm处理后,tooltip自动focus了
Translation of this issue:
2.13.1
win10/chrome79.0.3945.79
2.6.11
https://codepen.io/chenxch/pen/ExVvjob
Click the button of tooltip package
Process pop-up, cancel or OK
After confirm processing, the tool IP does not automatically focus on the original prompt
After confirm processing, toolip automatically focuses
Because the MessageBox returns focus to the last active element when closed, a workaround for me was to call document.activeElement.blur() before this.$confirm() to change focus from button to body.
@migueling thk.
thanks for your answer, but i think this is a bug
thanks for your answer, but i think this is a bug
Yes, I also think it's a bug, what I commented was just a workaround that I used.
I hope the element UI team can fix this problem.
Most helpful comment
Because the MessageBox returns focus to the last active element when closed, a workaround for me was to call document.activeElement.blur() before this.$confirm() to change focus from button to body.