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

Fails with dynamic forms / changing html (as well as Modernizr) #286

Open
1337GameDev opened this issue Oct 29, 2018 · 0 comments
Open

Fails with dynamic forms / changing html (as well as Modernizr) #286

1337GameDev opened this issue Oct 29, 2018 · 0 comments

Comments

@1337GameDev
Copy link

I want to polyfill when the browser doesn't support the "tel" input type using:

Modernizr.inputtypes.tel

Found out that there is no way to retroactively initialize a form if it doesn't match the constructor pattern EXACTLY as is initialized on PAGE LOAD. You can test this lack of dynamic inputs by going to the example page (Telephone Input), and then duplicating an input that is already initialized with the telephone support provided by this. An exception is thrown, due to an invalid reference (because that form wasn't initialized on page load).

Because of this, this plugin is not very usable in a "responsive" manner using modernizr to polyfill older browser support.

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

No branches or pull requests

1 participant