(react) rework the behavior of the Select component

We decided to change a bit the behavior of the Select:
- Do not trigger onChange on first render if value is defined
- Show all options on searchable select menu  opening even if there is an
  existing value.
- Clear the input field if no choice are selected
- Clear the added text to the input field when a value is already selected
This commit is contained in:
Nathan Vasse
2023-09-19 17:15:58 +02:00
committed by NathanVss
parent 732183420d
commit 4e1d0f0bc7
6 changed files with 199 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": minor
---
rework the behavior of the Select component