mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
Clear invite errors once user starts typing
Since the error condition is not valid anymore and needs to be chacked again when they stop typing.
This commit is contained in:
parent
6bacb89271
commit
2ba6e972c3
1 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
:class="{
|
||||
'input-valid': invite.valid, 'is-invalid input-invalid': invite.valid === false}"
|
||||
@keyup="expandInviteList"
|
||||
@input="checkInviteList"
|
||||
@input="checkInviteList(); clearErrors(invite);"
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -188,6 +188,10 @@ export default {
|
|||
this.invites.push(clone(INVITE_DEFAULTS));
|
||||
}
|
||||
},
|
||||
clearErrors (invite) {
|
||||
invite.valid = null;
|
||||
invite.error = null;
|
||||
},
|
||||
fillErrors (index, res) {
|
||||
if (!res || res.status === 200) {
|
||||
this.invites[index].error = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue