Skip to content

Commit

Permalink
fix: item click handler #81
Browse files Browse the repository at this point in the history
create empty handler function to avert crash when item with subitems is clicked clicked
  • Loading branch information
Ni55aN committed Mar 7, 2024
2 parents 35831a0 + c4c8ec3 commit a9c3f22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/presets/classic/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function createItem<S extends BSchemes>(
}
return <Item>{
...item,
handler() {/* do nothing */},
subitems: factory.map((data, i) => createItem(data, i, context))
}
}

0 comments on commit a9c3f22

Please sign in to comment.