From c33db5ab8d4493466e7da7a6c4c40acd1dbe6a04 Mon Sep 17 00:00:00 2001 From: Hugo Carmona Date: Mon, 6 Jun 2022 16:49:39 -0300 Subject: [PATCH] fix: clear selected value when value comes empty --- src/components/SelectInput/SelectInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SelectInput/SelectInput.vue b/src/components/SelectInput/SelectInput.vue index b5be5107..c888c6ba 100644 --- a/src/components/SelectInput/SelectInput.vue +++ b/src/components/SelectInput/SelectInput.vue @@ -179,11 +179,11 @@ export default { action(); }, - value() { + value: function (newValue) { const action = [ this.assignSelectedFromOptions, () => (this.selected = null), - ][Number(!this.value)]; + ][Number(!newValue)]; action(); },