dgreene1 / react-accessible-treeview

A react component that implements the treeview pattern as described by the WAI-ARIA Authoring Practices.
https://dgreene1.github.io/react-accessible-treeview
MIT License
261 stars 37 forks source link

Fix onSelect shows isHalfSelected = true for Branch Nodes #147

Closed kpustakhod closed 1 year ago

kpustakhod commented 1 year ago

Branch nodes do not broadcast the expected state when their onSelect events fire. When deselected, the only onSelect that fires shows isHalfSelected as true when it should be false.

Ref: UIEN-4766

kpustakhod commented 1 year ago

Changes in this commit where done because of this issue: https://alina-andreeva.tinytake.com/msc/ODU5NzI0MV8yMTk1MDMwOQ

The code that caused it was added during https://github.com/dgreene1/react-accessible-treeview/pull/109. Behavior from Ref: UIEN-4151 was rechecked and retested - works as expected.