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

[Bugfix] SingleSelect input value in controlled state #861

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

LJKaski
Copy link
Collaborator

@LJKaski LJKaski commented Jun 13, 2024

Description

SingleSelect input value didn't behave correctly when both onInputValueChange and onChange were given and onchange altered the parent component state. The input value could not be modified in this case.

This PR provides a suggested solution to the issue.

Related Issue

Closes #857

Motivation and Context

This was a bug reported by users and a service developer

How Has This Been Tested?

Tested by running locally on styleguidist with modified examples.

Release notes

SingleSelect

  • Fix an issue where input value could not be updated in a certain controlled state situation

@LJKaski LJKaski added the bug Something isn't working label Jun 13, 2024
@LJKaski LJKaski self-assigned this Jun 13, 2024
@LJKaski LJKaski requested a review from riitasointi as a code owner June 13, 2024 11:17
@riitasointi riitasointi merged commit 0ec78ac into develop Jun 20, 2024
1 check passed
@riitasointi riitasointi mentioned this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

Unable to clear SingleSelect input using backspace when selected value exists
2 participants