Skip to content

Commit

Permalink
fix: clear selected value when value comes empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hcarmonas committed Jun 6, 2022
1 parent 95cdfe8 commit c33db5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SelectInput/SelectInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ export default {
action();
},
value() {
value: function (newValue) {
const action = [
this.assignSelectedFromOptions,
() => (this.selected = null),
][Number(!this.value)];
][Number(!newValue)];
action();
},
Expand Down

0 comments on commit c33db5a

Please sign in to comment.