Skip to content

Commit a9c3f22

Browse files
authored
fix: item click handler #81
create empty handler function to avert crash when item with subitems is clicked clicked
2 parents 35831a0 + c4c8ec3 commit a9c3f22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/presets/classic/factory.ts

Lines changed: 1 addition & 0 deletions
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+
handler() {/* do nothing */},
3132
subitems: factory.map((data, i) => createItem(data, i, context))
3233
}
3334
}

0 commit comments

Comments
 (0)