This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Deletion bug in Firefox causes error/crash #1812
Open
Description
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:
DOMException: "Node was not found" react-dom.production.min.js:110:57
NotFoundError: Node was not found
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