-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Deletion bug in Firefox causes error/crash #1812
Comments
This is also reproducible without setting an initial value, although it won't always flat-out crash. All you need to do is select at least 2 different blocks, then use the delete menu item. If it doesn't crash, focus and typing will at least be mis-handled and insert characters in the wrong location / fail to move the caret. From my testing, the browser removes part of the DOM from the |
Any ways to fix it? |
I'm experiencing this bug now. This has been around for over 1.5 yrs at this point. Is Firefox not a priority? |
I can confirm that my team is experiencing this same issue and it's causing severe breakings for our Firefox experience. Bump. |
@bytenik @MattSchiller what versions of Draft.js are you using? |
@mrkev |
Following up here for the Draft team & future bug-sufferers. Recapping the issue:
Workaround/Acceptable solution:
I hope this helps someone 🙇 |
This is part of a whole set of errors that stem from the process of keeping React and the DOM in sync, when the DOM is edited under React's feet. Thanks for sharing the knowledge @MattSchiller ! |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I can only recreate this issue in Firefox which seems to be the only browser with a "Delete" option in the context menu.
https://jsfiddle.net/wa2ckjq4/8/
Highlight the five rows saying "Delete me". Right click and choose "Delete" from the context menu.
Whole page crashes with console logs:
I may be mistaken but it appears to relate to setting an initial value in the constructor. Without that, I haven't been able to reproduce this issue.
What is the expected behavior?
For the page not to crash
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Firefox 61.0.1 (64 bit)
Draft v0.10.5
React v16.4.1
The text was updated successfully, but these errors were encountered: