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

Fix behaviour in textareas that have predefined innerText #15

Merged
merged 1 commit into from
May 9, 2013

Conversation

bensmithett
Copy link
Contributor

In this example...

<textarea>foo</textarea>

counter.all returns 3 when a user deletes everything from the textarea (expect it to return 0)

In the old orig assignment an empty string is evaluating to false so it moves on to the next option, this.element.innerText

RadLikeWhoa added a commit that referenced this pull request May 9, 2013
Fix behaviour in textareas that have predefined innerText
@RadLikeWhoa RadLikeWhoa merged commit cbf78c6 into RadLikeWhoa:master May 9, 2013
@RadLikeWhoa
Copy link
Owner

Nice, good catch.

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

Successfully merging this pull request may close these issues.

2 participants