Ver Fonte

fix: unable to preventDefault inside passive event listener invocation (#4852)

Vben há 10 meses atrás
pai
commit
90dc00b168

+ 0 - 1
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:"
   }

+ 0 - 2
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: [] }>();

+ 0 - 11
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

+ 0 - 1
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