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

Fixes maxlength conditional check for textarea & constrained input types #946

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

drewlee
Copy link
Contributor

@drewlee drewlee commented Nov 21, 2020

Currently, the maxlength guard for typeIn and fillIn helpers doesn't actually execute for textarea elements, nor does it discriminate between constrained and non-constrained input types. The issue is actually from an inverted check in the conditional. I've also added more tests to catch this sort of thing. The non-constrained test is slightly contrived, but it would definitely catch a problem if the input type isn't properly verified.

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @drewlee!

@rwjblue rwjblue added the bug label Dec 10, 2020
@rwjblue rwjblue merged commit dfead6f into emberjs:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants