Fix close modal on escp

This commit is contained in:
Julien Nahum 2024-01-18 12:58:12 +01:00
parent 117ea8d9c1
commit 67365ad260
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ useHead({
})
const closeOnEscape = (e) => {
if (e.key === 'Escape' && this.show) {
this.close()
if (e.key === 'Escape' && props.show) {
close()
}
}