docs: add escape event handler for closing tippy, see #1282
This commit is contained in:
@@ -110,6 +110,12 @@ export default {
|
||||
})
|
||||
},
|
||||
onKeyDown(props) {
|
||||
if (props.event.key === 'Escape') {
|
||||
popup[0].hide()
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
return component.ref?.onKeyDown(props)
|
||||
},
|
||||
onExit() {
|
||||
|
||||
Reference in New Issue
Block a user