Skip to content

inputNumberPolyfill assumes type attribute is there (and can crash) #4

@bbottema

Description

@bbottema

inputNumberPolyfill should not assume anything about inputs and only apply itself when it can, but never error out.

return elem.attr("type").toLowerCase() === "number" && (...)

Should become:

return elem.attr("type") && elem.attr("type").toLowerCase() === "number" &&

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions