You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last selected item can lose selected state in certain scenario.
Steps to reproduce:
Build a view with list of selectable tile
Click on one tile and then hold shift to do multi-selection on tiles
Hold the shift key and select any tile again
Bug -> if the tile was previously selected, the tile is deselected, even though the select props passed in indicate that the tile should persistent selection
Steps to reproduce:
Bug -> if the tile was previously selected, the tile is deselected, even though the
select
props passed in indicate that the tile should persistent selectionLooked into the code base, the issue seems from here:
https://github.com/carbon-design-system/carbon-components-react/blob/master/src/components/Tile/Tile.js#L228
https://github.com/carbon-design-system/carbon-components-react/blob/master/src/components/Tile/Tile.js#L239-L247
When user click on the tile, the selected state doesn't respect the selected props value.
Environment
Detailed description
Steps to reproduce the issue
Thanks Bill for helping me put up this codesandbox link. The critical line is at line 76.
Additional information
Screenshots or code
Notes
The text was updated successfully, but these errors were encountered: