testing-library / user-event

🐕 Simulate user events
https://testing-library.com/user-event
MIT License
2.14k stars 242 forks source link

`type` does not work with `contenteditable="plaintext-only"` #1197

Open taozhou-glean opened 4 months ago

taozhou-glean commented 4 months ago

Reproduction example

https://codesandbox.io/p/devbox/whmpk9

Prerequisites

just run the jest tests in above sandbox

Expected behavior

expect tests to pass

Actual behavior

test failed on plaintext-only post-edits

image

User-event version

^14.1.1

Environment

"@testing-library/dom": "8.12.0",
"@testing-library/jest-dom": "5.16.3",
"@testing-library/user-event": "^14.1.1"

Additional context

No response