🐛(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:
Nathan Vasse
2023-09-15 16:11:53 +02:00
committed by NathanVss
parent 111bb677c4
commit 8470126b1f
4 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---
fix failing selection of last removed item