fix(components)!: rename select to onSelect on items

This commit is contained in:
Benjamin Canac
2024-10-15 13:10:58 +02:00
parent 6af276ef38
commit b39c4d127e
21 changed files with 76 additions and 125 deletions

View File

@@ -44,7 +44,7 @@ export function extractShortcuts(items: any[] | any[][]) {
items.forEach((item) => {
if (item.kbds?.length && (item.select || item.click)) {
const shortcutKey = item.kbds.join('_')
shortcuts[shortcutKey] = item.select || item.click
shortcuts[shortcutKey] = item.onSelect || item.onClick
}
if (item.children) {
traverse(item.children.flat())