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

[NDS-798] fix: select backspace does not change value [v4] #673

Merged

Conversation

kostasdano
Copy link
Collaborator

@kostasdano kostasdano commented Sep 25, 2023

Description

NDS-798

In this PR:

  • Single Select: Backspace triggers the handleSelectedOption callback (external prop) with undefined.
  • Multi Select: While BackSpace already deletes the last item from the inner state of selected options, it now also triggers the onOptionDelete callback (external prop) with the last item of the selectedOptions[] as an argument (this callback was only triggered when the X icon of the Chip-Option was clicked)

@orfium-sonarqube-app
Copy link

@kostasdano kostasdano marked this pull request as ready for review September 25, 2023 14:09
@kostasdano kostasdano requested a review from a team as a code owner September 25, 2023 14:09
Copy link
Contributor

@tentascoding tentascoding left a comment

Choose a reason for hiding this comment

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

image

Copy link
Contributor

@tentascoding tentascoding left a comment

Choose a reason for hiding this comment

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

image

@kostasdano kostasdano merged commit c5ab01f into master Sep 25, 2023
@kostasdano kostasdano deleted the fix/NDS-798_select_backspace_does_not_change_value branch September 25, 2023 17:04
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