From 92720027507f28fa83c8f3e2feb597318031595a Mon Sep 17 00:00:00 2001 From: Dominique BILLET Date: Fri, 13 Dec 2024 15:16:39 +0100 Subject: [PATCH] fix extractShortcuts (issue after renaming onSelect, onClick) --- src/runtime/composables/defineShortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/defineShortcuts.ts b/src/runtime/composables/defineShortcuts.ts index 9ba03bb3c9..68fd14a4cf 100644 --- a/src/runtime/composables/defineShortcuts.ts +++ b/src/runtime/composables/defineShortcuts.ts @@ -41,7 +41,7 @@ export function extractShortcuts(items: any[] | any[][]) { function traverse(items: any[]) { items.forEach((item) => { - if (item.kbds?.length && (item.select || item.click)) { + if (item.kbds?.length && (item.onSelect || item.onClick)) { const shortcutKey = item.kbds.join('_') shortcuts[shortcutKey] = item.onSelect || item.onClick }