Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to close modal using esc key in nuxt js

<v-dialog v-model="dialog" @keydown.esc="dialog = false"></v-dialog>

data: () => ({
  dialog: false
}),
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #close #modal #esc #key #nuxt #js
ADD COMMENT
Topic
Name
6+4 =