Skip to content

Commit 2b4e774

Browse files
committed
Fix: #81
Create empty handler function to avert crash when item with subitems is clicked clicked Update factory.ts Update factory.ts Update factory.ts
1 parent 35831a0 commit 2b4e774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/presets/classic/factory.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function createItem<S extends BSchemes>(
2828
}
2929
return <Item>{
3030
...item,
31-
subitems: factory.map((data, i) => createItem(data, i, context))
31+
handler() {/* do nothing */},
32+
subitems: factory.map((data, i) => createItem(data, i, context)),
3233
}
3334
}

0 commit comments

Comments
 (0)