fix unwanted phone number field clearing
All checks were successful
delpoy / build-and-deploy (push) Successful in 40s
All checks were successful
delpoy / build-and-deploy (push) Successful in 40s
This commit is contained in:
parent
5a31406a1c
commit
d5ad9a7890
@ -95,9 +95,9 @@
|
|||||||
value = e.target?.value;
|
value = e.target?.value;
|
||||||
if (pattern && !pattern.test(e.target?.value)) {
|
if (pattern && !pattern.test(e.target?.value)) {
|
||||||
if (inputElement?.value.endsWith(e.data)) {
|
if (inputElement?.value.endsWith(e.data)) {
|
||||||
value = e.target?.value.substring(0, -e.data.length);
|
value = e.target?.value.substring(0, e.target?.value.length - e.data.length);
|
||||||
}
|
}
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
return input(e);
|
return input(e);
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user