You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a cellFormat to a combobox, the box will start with no value selected instead of the bound property. Removing the cellFormat shows it working as expected.
class ComboboxText : View() {
val items = listOf("Item 1", "Item 2", "Item 3")
val selectedItem = SimpleStringProperty("Item 1")
override val root = borderpane {
center {
combobox(selectedItem, items) {
cellFormat {
text = it
}
}
}
}
}
Note that this seems to only concern the visualization of the selected value. Setting the bound property via the combobox works.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. I have committed a fix now, you can build 1.6.2-SNAPSHOT to use it until release. If you'd rather work around the issue in the mean time, you can add the following code after the cellFormat block in your above example:
When adding a
cellFormat
to acombobox
, the box will start with no value selected instead of the bound property. Removing the cellFormat shows it working as expected.Note that this seems to only concern the visualization of the selected value. Setting the bound property via the combobox works.
The text was updated successfully, but these errors were encountered: