mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-22 07:50:36 +01:00
fix(components)!: rename select to onSelect on items
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user