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

input event is raised on empty contenteditable element #1239

Open
hesxenon opened this issue Nov 15, 2024 · 0 comments
Open

input event is raised on empty contenteditable element #1239

hesxenon opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working needs assessment This needs to be looked at by a team member

Comments

@hesxenon
Copy link

Reproduction example

https://codesandbox.io/p/sandbox/proud-shadow-p5kfzl

Prerequisites

Everything is setup in the linked test case

Expected behavior

doing user.type(emptyContenteditable, "{Backspace}") should not raise an input event, same as when doing it manually.

Actual behavior

doing user.type(emptyContenteditable, "{Backspace}") DOES raise an input event in contrast to doing it manually

User-event version

^14.1.1

Environment

Testing Library framework:

JS framework:

Test environment:

DOM implementation:

Additional context

No response

@hesxenon hesxenon added bug Something isn't working needs assessment This needs to be looked at by a team member labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs assessment This needs to be looked at by a team member
Projects
None yet
Development

No branches or pull requests

1 participant