Answer the question
In order to leave comments, you need to log in
How to reorder events (@click, @blur) in Vue.JS?
There is a block in the Vue component:
<div @focus="show" @blur="hide" contenteditable>
...
</div>
<div @click="myFunc">
...
</div>
Answer the question
In order to leave comments, you need to log in
Question: how can focus / blur work on your div? And if the element that is being clicked is inside the element and it cannot be focused on (and div is like that), the focus from the parent will not fall off. Make some condition in hide, so that such closing does not happen.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question