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

counter doesn't update when control text is set using javascript #43

Open
wkrick opened this issue Aug 4, 2015 · 0 comments
Open

counter doesn't update when control text is set using javascript #43

wkrick opened this issue Aug 4, 2015 · 0 comments

Comments

@wkrick
Copy link

wkrick commented Aug 4, 2015

Currently, the counter only updates on keyup, blur, or paste events.
So when you set the value using javascript, the counter doesn't change.
My current workaround is to manually trigger a "blur" event after setting the value....

$('#myTextarea').val("some text"); // counter doesn't update
$('#myTextarea'),blur(); // make counter recognize text change

I'm not sure if there's an easy solution to this issue that will work with all browsers, but I think it should be a future enhancement if it is possible.

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

1 participant