Skip to content

Commit

Permalink
Merge pull request #1570 from bartbutenaers/ui-dropdown-sync-issue
Browse files Browse the repository at this point in the history
ui-dropdown sync issue
  • Loading branch information
joepavitt authored Jan 10, 2025
2 parents 69faee5 + db4f99c commit 11c4f0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/widgets/ui-dropdown/UIDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ export default {
onSync (msg) {
// update the UI with any changes
if (typeof msg?.payload !== 'undefined') {
this.value = msg.payload
if (this.typeIsComboBox) {
this.value = this.options.find((o) => o.value === msg.payload)
} else {
this.value = msg.payload
}
}
},
onChange () {
Expand Down

0 comments on commit 11c4f0a

Please sign in to comment.