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

Combobox: Only accept distinct values via data-binding #913

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

haukesomm
Copy link
Collaborator

@haukesomm haukesomm commented Nov 6, 2024

This PR adjusts the combobox's data-binding to only accept values that are different from the previous selection.

In most cases, this should make no difference. There are corner cases, however, where the value is quickly updated multiple times in a row, causing the internals to run into race-conditions.

Fixes #912

This commit adjust the combobox's data-binding to only accept values
that are different from the previous selection.

In most cases, this should not make a difference.
There are corner cases, however, where the value is quickly updated
multiple times in a row, causing the internals to run into
race-conditions. The above changes should prevent this issue.
@haukesomm haukesomm added bug Something isn't working headless All about headless components and foundations labels Nov 6, 2024
@haukesomm haukesomm added this to the 1.0-RC20 milestone Nov 6, 2024
@haukesomm haukesomm requested a review from Lysander November 6, 2024 09:48
@Lysander Lysander merged commit 928a942 into master Nov 6, 2024
2 checks passed
@Lysander Lysander deleted the haukesomm/fix-combobox-loop branch November 6, 2024 10:06
haukesomm pushed a commit that referenced this pull request Nov 6, 2024
This commit adjust the combobox's data-binding to only accept values
that are different from the previous selection.

In most cases, this should not make a difference.
There are corner cases, however, where the value is quickly updated
multiple times in a row, causing the internals to run into
race-conditions. The above changes should prevent this issue.

(cherry picked from commit 928a942)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working headless All about headless components and foundations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combobox goes into a loop when setting the value store to null
2 participants