-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Idea for auto-format revival #750
Comments
Hey, I think this is a really neat approach, and I agree it does solve some of the problems of the original approach. Sadly it does not solve all of them, and additionally it would require a massive effort to code up and maintain all of the formatting rules in the CSS. I guess one new issue I foresee is that it might be frustrating/confusing for users that they cannot manually delete formatting chars - if you try, you end up deleting the adjacent digit, and then the formatting shifts and group the numbers in a confusing way. Also I wonder about the browser support for the That said, if you wanted to code this up as a separate standalone project, I would be very happy to link to it, if you can get it to a usable state - as I say, I think it's a really cool idea! |
Thanks for your feedback, For the record, You can close the issue if you want. |
Some notes to myself with the same idea: |
Hi,
I have something in mind to revive some kind of auto-formatting and I want your feedback on it.
My idea may sound silly at first but I'm convinced that it could solve some drawbacks of the intial
autoFormat
option.Ok so my idea is to use CSS to format the phone number instead of JS.
Here is an example https://jsfiddle.net/oh21fsc4/11/
We need to wrap all digit in
<span>
and use CSS to apply dynamically style according to the country code.Advantages:
intl-tel-input
logic stay the sameDrawback:
<span>
Anyway, tell me what you think about it.
The text was updated successfully, but these errors were encountered: