OpenRailAssociation / osrd-ui

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

ui-core: accept undefined as Select value #557

Closed emersion closed 1 month ago

emersion commented 1 month ago

When a placeholder is used, the value of a Select can be undefined, as reflected in the type of the onChange callback. However the component user had no way to reset the value of the Select from the outside via the value property. Make it optional to fix that.

Discussion: https://github.com/OpenRailAssociation/osrd/pull/8838#discussion_r1774839347