Skip to content

Commit 3ea05da

Browse files
committed
feat: field error styling clears when field is interacted with
1 parent 71a8a0e commit 3ea05da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/signup-card.vue

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const submitButtonLabel = computed(() => { return formSubmitted.value ? 'Success
160160
* @method updateInputValue
161161
*/
162162
const updateInputValue = (val, field) => {
163+
if (fieldError.value[field]) { fieldError.value[field] = false}
163164
switch(field) {
164165
case 'firstName':
165166
firstName.value = val
@@ -180,6 +181,7 @@ const updateInputValue = (val, field) => {
180181
*/
181182
const selectOption = (setSelected, closePanel, option, field) => {
182183
if (option) {
184+
if (fieldError.value[field]) { fieldError.value[field] = false }
183185
setSelected(option)
184186
closePanel()
185187
switch(field) {

0 commit comments

Comments
 (0)