From 90dc00b1681a29192ad70ca1e03ae68532cb48be Mon Sep 17 00:00:00 2001 From: Vben Date: Sun, 10 Nov 2024 10:26:35 +0800 Subject: [PATCH] fix: unable to preventDefault inside passive event listener invocation (#4852) --- packages/effects/layouts/package.json | 1 - packages/effects/layouts/src/basic/layout.vue | 2 -- pnpm-lock.yaml | 11 ----------- pnpm-workspace.yaml | 1 - 4 files changed, 15 deletions(-) diff --git a/packages/effects/layouts/package.json b/packages/effects/layouts/package.json index 72e55f77..8141ee85 100644 --- a/packages/effects/layouts/package.json +++ b/packages/effects/layouts/package.json @@ -37,7 +37,6 @@ "@vben/types": "workspace:*", "@vben/utils": "workspace:*", "@vueuse/core": "catalog:", - "default-passive-events": "catalog:", "vue": "catalog:", "vue-router": "catalog:" } diff --git a/packages/effects/layouts/src/basic/layout.vue b/packages/effects/layouts/src/basic/layout.vue index 4a0896ce..16c3551f 100644 --- a/packages/effects/layouts/src/basic/layout.vue +++ b/packages/effects/layouts/src/basic/layout.vue @@ -29,8 +29,6 @@ import { } from './menu'; import { LayoutTabbar } from './tabbar'; -import 'default-passive-events'; - defineOptions({ name: 'BasicLayout' }); const emit = defineEmits<{ clearPreferencesAndLogout: [] }>(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b348622b..1c33be1d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,9 +192,6 @@ catalogs: dayjs: specifier: ^1.11.13 version: 1.11.13 - default-passive-events: - specifier: ^2.0.0 - version: 2.0.0 defu: specifier: ^6.1.4 version: 6.1.4 @@ -1596,9 +1593,6 @@ importers: '@vueuse/core': specifier: 'catalog:' version: 11.2.0(vue@3.5.12(typescript@5.6.3)) - default-passive-events: - specifier: 'catalog:' - version: 2.0.0 vue: specifier: ^3.5.12 version: 3.5.12(typescript@5.6.3) @@ -5736,9 +5730,6 @@ packages: resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} engines: {node: '>=18'} - default-passive-events@2.0.0: - resolution: {integrity: sha512-eMtt76GpDVngZQ3ocgvRcNCklUMwID1PaNbCNxfpDXuiOXttSh0HzBbda1HU9SIUsDc02vb7g9+3I5tlqe/qMQ==} - define-data-property@1.1.4: resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} engines: {node: '>= 0.4'} @@ -14743,8 +14734,6 @@ snapshots: bundle-name: 4.1.0 default-browser-id: 5.0.0 - default-passive-events@2.0.0: {} - define-data-property@1.1.4: dependencies: es-define-property: 1.0.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index f98364c2..7fc078fc 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -79,7 +79,6 @@ catalog: cz-git: ^1.11.0 czg: ^1.11.0 dayjs: ^1.11.13 - default-passive-events: ^2.0.0 defu: ^6.1.4 depcheck: ^1.4.7 dotenv: ^16.4.5