10000 Autofill Special Characters · Issue #27 · estelle/input-masking · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Autofill Special Characters #27
Open
@Auer111

Description

@Auer111

After some testing I found some users found it unintuitive to only type numbers for masked dates. (they would try to type in the slashes). If there is some functionality I didn't understand that supports this in the docs let me know, otherwise I found this solution.

inside of handleCurrentValue
after the for loop add

if (value.length < l) { if (placeholder[value.length].match(/\W/)) { newValue += placeholder[value.length]; } }

Example: 12/25 -> 12/25/

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

      0