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 maxLength handling over multiple type() calls #283

Merged
merged 1 commit into from May 17, 2020

Conversation

9still
Copy link
Contributor

@9still 9still commented May 17, 2020

Fixes #281

When type() behavior was changed to append text, rather than replace it, maxLength handling was not updated to take any pre-existing text into account. As a result, when using multiple .type() calls, the user is able to enter text in excess of maxLength. More details in #281

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thank you!

@kentcdodds kentcdodds merged commit 85546ec into testing-library:master May 17, 2020
@kentcdodds
Copy link
Member

@all-contributors please add @9still for code, tests, and bugs

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @9still! 🎉

@Gpx
Copy link
Member

Gpx commented May 17, 2020

🎉 This PR is included in version 10.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Gpx Gpx added the released label May 17, 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.

userEvent.type does not respect maxlength when appending to existing text
3 participants