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