It is not infrequent that I need to access the element of a component, in vue. For instance here in element-plus, to make sure that the focus is removed:
<el-button ref="btnLanza" @mouseleave="$refs.btnLanza.$el.blur()" @click="runLanza" round>Lanzar</el-button>
In other frameworks, something along the lines of on-mouseleave="this.blur()"
would be enough, but in vue this
…
Top comments (0)