Remove unnecessary code
This commit is contained in:
parent
6034de7bd4
commit
7c89d19b83
@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<ModalsContainer />
|
||||
</div>
|
||||
<ModalsContainer />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@ -76,13 +74,4 @@ watch(show, (newValue) => {
|
||||
closeModal.value = close;
|
||||
open();
|
||||
});
|
||||
|
||||
window.addEventListener("keydown", (event) => {
|
||||
if (!layoutStore.show) return;
|
||||
|
||||
if (event.key === "Escape") {
|
||||
event.stopImmediatePropagation();
|
||||
layoutStore.closeHovers();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user