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

Emulation of 'Backspace' and other non alphanumeric buttons pressing. #172

Closed
kernel72 opened this issue Sep 19, 2019 · 2 comments · Fixed by #308
Closed

Emulation of 'Backspace' and other non alphanumeric buttons pressing. #172

kernel72 opened this issue Sep 19, 2019 · 2 comments · Fixed by #308
Labels

Comments

@kernel72
Copy link

Hi, guys!

I have a next question, which has come during usage of this cool library.
I have to simulate a user's "Backspace" button pressing and could not find how to do it with this library.
Unfortunately, the native testing-library fireEvent is not works for me, because I have an input which filters pressed keys in onKeyDown event handler and it also has onChange event handler which makes additional validation and further component mutations.
I use user-event to check that both events have been fires correclty and check the final value of input.

'Backspace' is also have to pass through this filter to erase typed data, but I couldn't find how to call it.

Could you please advice something?
Thank you.

@Gpx
Copy link
Member

Gpx commented Sep 24, 2019

Hi! I think this might be related to #31 which deals with adding support for all kinds of special characters.

@Gpx Gpx closed this as completed Sep 24, 2019
kentcdodds added a commit that referenced this issue Jun 4, 2020
kentcdodds added a commit that referenced this issue Jun 4, 2020
@kentcdodds
Copy link
Member

🎉 This issue has been resolved in version 11.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 a pull request may close this issue.

3 participants