Skip to content

unmask() does not remove the "maxlength" attribute #507

@kefir500

Description

@kefir500

Version 1.14.2 adds the next feature:

apply auto maxlength in case the mask doesn't have recursive pattern

However, the unmask() function does not remove the maxlength attribute added by this behavior, and the unmasked input length is still limited by the previously set mask pattern.

Example: https://jsfiddle.net/t2cakzgb/3

The affected versions are 1.14.2 to the current (1.14.8).
The temporary solution is to manually call the removeAttr('maxlength').

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions