TreeTable: onSelectionChange - TreeTableSelectionEvent has wrong type #6845
Labels
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the bug
TreeTable's
onSelectionChange
callback is defined as(event: TreeTableSelectionEvent) => void
whereas theTreeTableSelectionEvent
is defined asin case of
selectionMode === "single"
thevalue
of the event is a string instead ofTreeTableSelectionKeysType
. Therefore thevalue
should be defined asTreeTableSelectionKeysType | string
.Reproducer
No response
PrimeReact version
10.3.1
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: