Skip to content

Commit 11c4f0a

Browse files
authored
Merge pull request #1570 from bartbutenaers/ui-dropdown-sync-issue
ui-dropdown sync issue
2 parents 69faee5 + db4f99c commit 11c4f0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/widgets/ui-dropdown/UIDropdown.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ export default {
138138
onSync (msg) {
139139
// update the UI with any changes
140140
if (typeof msg?.payload !== 'undefined') {
141-
this.value = msg.payload
141+
if (this.typeIsComboBox) {
142+
this.value = this.options.find((o) => o.value === msg.payload)
143+
} else {
144+
this.value = msg.payload
145+
}
142146
}
143147
},
144148
onChange () {

0 commit comments

Comments
 (0)