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

Issue 102. Fixed combo-box items update. #113

Merged
merged 1 commit into from Jan 1, 2021
Merged

Conversation

atdixon
Copy link
Contributor

@atdixon atdixon commented Dec 30, 2020

#102

Replacing list items in a ComboBox via ObservableList/setAll (ie, combox.getItems().setAll(...)) causes the selected item to be lost by the underlying JavaFX component state. Using the ComboBox's .setItem method directly fixes the issue.

This PR configures cljfx/combo-box to use the direct component setter instead of the observable list update.

A private observable-list coercion function is relocated to the coerce namespace so that it can be used by combo-box.

I've tested that this fixes the issue and ran the unit tests via clj -M:test:runner.

(Let me know if you'd like any changes, additions, tests to this PR.)

@vlaaad vlaaad merged commit 8c2907f into cljfx:master Jan 1, 2021
@vlaaad
Copy link
Contributor

vlaaad commented Jan 1, 2021

Thanks!

@vlaaad
Copy link
Contributor

vlaaad commented Jan 1, 2021

Released 1.7.12 with your changes!

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.

None yet

2 participants