fix: on error keep the value in input and in focus
This commit is contained in:
parent
db6f50ff7d
commit
60479554a2
@ -64,10 +64,11 @@ const addValue = () => {
|
|||||||
}
|
}
|
||||||
// add value to values array
|
// add value to values array
|
||||||
values.value.push(value)
|
values.value.push(value)
|
||||||
|
currentValue.value = currentValue.value.replace(value, '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
currentValue.value = ''
|
!error.value && (currentValue.value = '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user