View#detachDomRoot()
might operate on non-existing DOM element
#16561
Labels
package:engine
squad:core
Issue to be handled by the Core team.
status:in-progress
Set automatically when an issue lands in the "In progress" column. We are working on it.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
📝 Provide detailed reproduction steps (if any)
There is no easy way to reproduce the issue without a React application. Due to its nature and double rendering in StrictMode, the editor might try to operate on a DOM element that is no longer available.
ckeditor5/packages/ckeditor5-engine/src/view/view.ts
Lines 318 to 337 in ec36486
L319,
domRoot
might beundefined
when a DOM element is no longer available.When the application crashes, it shows the following trace:
✔️ Expected result
No error. The application should not crash.
❌ Actual result
As reported above.
📃 Other details
The text was updated successfully, but these errors were encountered: