🐛(react) fix failing selection of last removed item
Previsouly when selecting item A and then removing it, it was impossible to select it again. This was caused by the internal memory of useSelect that only provides undefined selectedItem inside the onStateChange callback when the item has not changed. So by forcing it everytime to null it is now providing it everytime.
This commit is contained in:
5
.changeset/sweet-rats-poke.md
Normal file
5
.changeset/sweet-rats-poke.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@openfun/cunningham-react": patch
|
||||
---
|
||||
|
||||
fix failing selection of last removed item
|
||||
Reference in New Issue
Block a user