The Elmentui button does not lose focus after being clicked

  • Project scenario:

In the Vue project, after el-Button is clicked, the Layer popbox is used. Multiple window overlaps will pop up when using enter repeatedly. Of course, refocusing in the popbox will not have this problem.

  • Solution:

Write utility functions using the $event event object

Every time the popup is used, after the button is clicked, defocus the button