Fix close modal on escp
This commit is contained in:
parent
117ea8d9c1
commit
67365ad260
|
@ -82,8 +82,8 @@ useHead({
|
|||
})
|
||||
|
||||
const closeOnEscape = (e) => {
|
||||
if (e.key === 'Escape' && this.show) {
|
||||
this.close()
|
||||
if (e.key === 'Escape' && props.show) {
|
||||
close()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue