Skip to content

Commit

Permalink
fix: Missing onChange event when auto selecting an option in KSelectF…
Browse files Browse the repository at this point in the history
…ield (close #965)
  • Loading branch information
cnouguier committed Oct 2, 2024
1 parent 681653f commit fcdbc0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/client/components/form/KSelectField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export default {
handler (opts) {
if (_.isEmpty(this.filter) && opts.length === 1 && this.required) {
this.$nextTick(() => {
this.model = opts[0].value
this.fill(opts[0].value)
this.onChanged(opts[0].value)
})
}
}
Expand Down

0 comments on commit fcdbc0a

Please sign in to comment.