1
0
forked from test/crm

fix: on error keep the value in input and in focus

This commit is contained in:
Shariq Ansari 2023-12-26 20:23:53 +05:30
parent db6f50ff7d
commit 60479554a2

View File

@ -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 = '')
}
}