OpenRailAssociation / osrd-ui

Icons, fonts, colors, components and all user interface items for OSRD project.
8 stars 5 forks source link

ComboBox: Clear button does not appear when a default value is pre-selected #578

Open achrafmohye opened 2 days ago

achrafmohye commented 2 days ago

What happened?

The current issue is that the clear button does not appear when a default value is pre-selected that matches a suggestion. This behavior has been confirmed with @thibautsailly

What did you expect to happen?

The clear button to be available when the value matches a suggestion, regardless of whether the value was user-selected or pre-populated.

How can we reproduce it (as minimally and precisely as possible)?

Choose a story where the combo-box is pre-populated with a valid value, notice the clear button

On which environments the bug occurs?

Local Storybook, Deployed Storybook

On which browser the bug occurs?

Google Chrome