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 3, 2022
1 parent be95545 commit aa99b23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SelectInput/SelectInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export default {
const selectedValue = this.options.find(
(item) => item.value === this.value,
);
this.selected = { name: '', value: '' };
if (selectedValue) this.selected = selectedValue;
},
},
Expand Down

0 comments on commit aa99b23

Please sign in to comment.