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