From 60479554a2ea98b898f3adfdcfe88ddc6ed2df0b Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 26 Dec 2023 20:23:53 +0530 Subject: [PATCH] fix: on error keep the value in input and in focus --- frontend/src/components/Controls/MultiselectInput.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Controls/MultiselectInput.vue b/frontend/src/components/Controls/MultiselectInput.vue index e679c25c..91d6fd8b 100644 --- a/frontend/src/components/Controls/MultiselectInput.vue +++ b/frontend/src/components/Controls/MultiselectInput.vue @@ -64,10 +64,11 @@ const addValue = () => { } // add value to values array values.value.push(value) + currentValue.value = currentValue.value.replace(value, '') } } }) - currentValue.value = '' + !error.value && (currentValue.value = '') } }