Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui-core: accept undefined as Select value #557

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

emersion
Copy link
Member

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: OpenRailAssociation/osrd#8838 (comment)

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.

Signed-off-by: Simon Ser <[email protected]>
Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR

@kmer2016 kmer2016 added this pull request to the merge queue Sep 27, 2024
Merged via the queue into dev with commit e8013af Sep 27, 2024
6 checks passed
@kmer2016 kmer2016 deleted the emr/optional-select-value branch September 27, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants