From aa99b23fd4838065fa7ebcc2c875362454ce56a6 Mon Sep 17 00:00:00 2001 From: Hugo Carmona Date: Fri, 3 Jun 2022 14:57:58 -0300 Subject: [PATCH] fix: clear selected value when value comes empty --- src/components/SelectInput/SelectInput.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/SelectInput/SelectInput.vue b/src/components/SelectInput/SelectInput.vue index a4487be2..6a669f37 100644 --- a/src/components/SelectInput/SelectInput.vue +++ b/src/components/SelectInput/SelectInput.vue @@ -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; }, },