mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
fix(ui): use String.prototype.replace to make it compatible with legacy version browsers (#3000)
This commit is contained in:
parent
b5e7350ee9
commit
f0d32a4546
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ const PhoneInput = ({
|
||||||
setOnFocus(false);
|
setOnFocus(false);
|
||||||
}}
|
}}
|
||||||
onChange={({ target: { value } }) => {
|
onChange={({ target: { value } }) => {
|
||||||
onChange({ nationalNumber: value.replaceAll(/\D/g, '') });
|
onChange({ nationalNumber: value.replace(/\D/g, '') });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{nationalNumber && onFocus && (
|
{nationalNumber && onFocus && (
|
||||||
|
|
Loading…
Reference in a new issue