Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

fix copy-paste when placeholder is not empty string and maxlength is set to the same length of mask#159

Closed
modesty wants to merge 1 commit intodigitalBush:masterfrom
modesty:master
Closed

fix copy-paste when placeholder is not empty string and maxlength is set to the same length of mask#159
modesty wants to merge 1 commit intodigitalBush:masterfrom
modesty:master

Conversation

@modesty
Copy link

@modesty modesty commented Jul 29, 2013

v1.3.1 maskedinput plugin does not accept pasted value when placeholder is not empty string and the input element has maxlength attribute set to the same length of the mask. This commit fixes it.

v1.3.1 maskedinput plugin does not accept pasted value when placeholder is not empty string and the input element has maxlength attribute set to the same length of the mask. This commit fixes it.
@digitalBush
Copy link
Owner

I don't think I'm comfortable changing the element's maxlength attribute out from under the user. The plugin enforces a max length by nature of how it works and it would be best to just not use that attribute at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants