Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari iOS autofill with react-number-format allowEmptyFormatting #450

Closed
tanya94 opened this issue Oct 29, 2020 · 4 comments
Closed

Safari iOS autofill with react-number-format allowEmptyFormatting #450

tanya94 opened this issue Oct 29, 2020 · 4 comments
Assignees
Labels

Comments

@tanya94
Copy link

tanya94 commented 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):

<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.

@tanya94 tanya94 changed the title Safari iOS autofill with ReactNumberFormat mask Safari iOS autofill with ReactNumberFormat allowEmptyFormatting Oct 29, 2020
@tanya94 tanya94 changed the title Safari iOS autofill with ReactNumberFormat allowEmptyFormatting Safari iOS autofill with react-number-format allowEmptyFormatting Oct 29, 2020
@olehslyniavuk
Copy link

+1 the same for google chrome autocomplete

@s-yadav s-yadav added the bug label Nov 22, 2020
@pavelspichonak
Copy link

Any updates?

@nikhil-varma
Copy link
Collaborator

The fix for this issue has been merged and released. Thanks again for reporting!

@biggieman
Copy link

Hello! the bug is still being reproduced in demo https://codepen.io/s-yadav/pen/bpKNMa

checked in chrome and yandex browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants