-
Notifications
You must be signed in to change notification settings - Fork 674
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
Weird behaviour when typing into Slate Editor field in Chrome #1956
Comments
Hello @tamlyn! I reproduced the issue. You can try .typeText('div[contenteditable=true]', 'This is some text which does not work', { paste: true }) |
I'm seeing similar behavior in when using DraftJS. It seems like maybe testcafe is modifying the DOM directly when using typeText, which is then causing React's virtual dom to become out of sync and causing errors to be thrown. |
Hi @benbrandt, thanks for the info. Have you tried the approach with the |
|
This issue might also be due to race conditions in your react code. |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
* [WIP] process TextInput event on typing (closes DevExpress#1956) * fix textInput dispatch in safari * fix textInput dispatch in safari * fix review remarks * fix user agent module
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
When using
typeText
into a Slate WYSIWYG editor input in Chrome or Safari, the text gets jumbled up.What is the expected behavior?
Text should be input normally, like in FIrefox.
How would you reproduce the current behavior (if this is a bug)?
See this gist https://gist.github.com/tamlyn/08b4be11424f2539d4d5105ceebf3d4d
Provide the test code and the tested page URL (if applicable)
See above
Specify your
The text was updated successfully, but these errors were encountered: