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

Fix setting an initial value for the ComboBox #921

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

Lysander
Copy link
Collaborator

Currently the ComboBox dismissed an initial value. This is now fixed.

Remark: There is no test yet, that would test this behaviour. We need to extend our demo app to make this possible. We need another, dedicated issue for that.

@Lysander Lysander added bug Something isn't working headless All about headless components and foundations labels Nov 18, 2024
@Lysander Lysander added this to the 1.0-RC20 milestone Nov 18, 2024
@Lysander Lysander self-assigned this Nov 18, 2024
@Lysander
Copy link
Collaborator Author

For testing the issue change line 11 in combobox demo to this temporarely:

val preset = Country.countries.first { it.token == "DE" }
val selectionStore = storeOf<Country?>(preset)

@Lysander Lysander requested a review from haukesomm November 18, 2024 13:53
Copy link
Collaborator

@haukesomm haukesomm left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Lysander Lysander merged commit eaff40f into master Nov 18, 2024
2 checks passed
@Lysander Lysander deleted the chausknecht/fix-combobox-initial-value-bug branch November 18, 2024 14:22
Lysander added a commit that referenced this pull request Nov 18, 2024
Co-authored-by: christian.hausknecht <christian.hausknecht@oeffentliche.de>
(cherry picked from commit eaff40f)
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.

2 participants