Answer the question
In order to leave comments, you need to log in
How to run keyup.esc event handler?
modal-call(:class="{active: showModal}" :keyup.esc="showForm")
:keyup.esc - I want to use it to close the window, but it doesn't work I've looked at
the previous solutions, but it doesn't work the same
data(){
return{ showModal: false }
},
methods:{
showForm(){
this.showModal = !this.showModal
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question