Skip to content

Commit

Permalink
Merge pull request FlowFuse#1002 from bartbutenaers/dropdown-multisel…
Browse files Browse the repository at this point in the history
…ection-select-fix

Dropdown multiselection select fix
  • Loading branch information
joepavitt authored Jun 21, 2024
2 parents 6247eca + 993fd62 commit b40aaf6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/src/widgets/ui-dropdown/UIDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ export default {
// 1. add/replace the dropdown options (to support dynamic options e.g: nested dropdowns populated from a database)
// 2. update the selected value(s)
const payload = msg.payload
if (payload !== undefined) {
// 2. update the selected value(s)
this.select(payload)
}
// keep options out for backward compatibility
const options = msg.options
if (options) {
Expand All @@ -116,6 +110,12 @@ export default {
this.items = options
}
const payload = msg.payload
if (payload !== undefined) {
// 2. update the selected value(s)
this.select(payload)
}
// update the UI with any other changes
const updates = msg.ui_updates
Expand Down

0 comments on commit b40aaf6

Please sign in to comment.