Answer the question
In order to leave comments, you need to log in
How to hide an element when clicking on it and clicking outside of it vue?
There is a select, it is necessary that the first time you click on it, it opens, the second time it hides, and it also hides when you click outside it.
I did the first and last point, but because of the hook:
mounted() {
document.addEventListener("click", this.hideSelect.bind(this), true)
}
Answer the question
In order to leave comments, you need to log in
https://yandex.ru/search/?clid=1882628&text=vue+cl...
https://qna.habr.com/q/700194
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question