You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I use ReactNumberFormat input with phone mask and allowEmptyFormatting prop. Safari on iOS offers to autofill value from contacts. But after autofilling input is again only with empty mask (with yellow background-color, because is was autocompleted).
Code example (a part of your live demo codepen):
<div className="example">
<h3>
Show mask on empty input (phone)
</h3>
<NumberFormat format="+1 (###) ###-####" mask="_" allowEmptyFormatting />
</div>
P.S.: If I use the same example without allowEmptyFormatting prop, value autofills correctly.
The text was updated successfully, but these errors were encountered:
tanya94
changed the title
Safari iOS autofill with ReactNumberFormat mask
Safari iOS autofill with ReactNumberFormat allowEmptyFormatting
Oct 29, 2020
tanya94
changed the title
Safari iOS autofill with ReactNumberFormat allowEmptyFormatting
Safari iOS autofill with react-number-format allowEmptyFormatting
Oct 29, 2020
Hello! I use ReactNumberFormat input with phone mask and
allowEmptyFormatting
prop. Safari on iOS offers to autofill value from contacts. But after autofilling input is again only with empty mask (with yellow background-color, because is was autocompleted).Code example (a part of your live demo codepen):
P.S.: If I use the same example without
allowEmptyFormatting
prop, value autofills correctly.The text was updated successfully, but these errors were encountered: