From c0ccb5031f387a2fec6fa62a27bc5e2bbd78484d Mon Sep 17 00:00:00 2001 From: Vyachesalv Date: Tue, 12 Mar 2024 22:47:33 +0300 Subject: [PATCH] feat(side menu): add delete book --- books-ui/.eslintrc.cjs | 1 + books-ui/src/components/2_molecules/InteractivePopup.vue | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/books-ui/.eslintrc.cjs b/books-ui/.eslintrc.cjs index 6c9609b..b062e6c 100644 --- a/books-ui/.eslintrc.cjs +++ b/books-ui/.eslintrc.cjs @@ -5,6 +5,7 @@ module.exports = { ], rules: { "no-multiple-empty-lines": ["error", {max: 2, "maxBOF": 0}], + "vue/order-in-components": "error", "indent": ["error", 2], "no-mixed-spaces-and-tabs": "error", "vue/attribute-hyphenation": "off", diff --git a/books-ui/src/components/2_molecules/InteractivePopup.vue b/books-ui/src/components/2_molecules/InteractivePopup.vue index 841d0a3..c02c12f 100644 --- a/books-ui/src/components/2_molecules/InteractivePopup.vue +++ b/books-ui/src/components/2_molecules/InteractivePopup.vue @@ -11,11 +11,9 @@ export default { }, computed: {}, mounted() { - // Listen for clicks outside the dropdown document.addEventListener("click", this.handleClickOutside); }, beforeUnmount() { - // Remove click outside listener when component is unmounted document.removeEventListener("click", this.handleClickOutside); }, methods: {