Skip to content

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

@1337GameDev

Description

@1337GameDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions