Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't update the limit after input's maxlength attribute was changed #31

Closed
neara opened this issue Oct 24, 2013 · 2 comments
Closed
Assignees

Comments

@neara
Copy link

neara commented Oct 24, 2013

I have a form with textfield.
Depending on what other fields are filled in, the maxlength of the textfield is changed.

When i first instantiate bootstrap-maxlength on the textfield, it works ok, but if i change the maxlength of that field, the plugin doesn't update.

@ghost ghost assigned mimo84 Oct 28, 2013
@mimo84
Copy link
Owner

mimo84 commented Oct 28, 2013

I just updated the way the plugin works to make sure if the maxlength attribute is changed after the plugin is initialized, the change is picked up when the user focus again on the input. If you need to update the maxlength while the user is typing, just trigger the focus immediately after.

@mimo84 mimo84 closed this as completed Oct 28, 2013
@neara
Copy link
Author

neara commented Oct 31, 2013

Thank you! This is great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants