TinyMCE error when merging two paragraph blocks #4580
Labels
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
When merging two paragraph blocks using backspace, an error is logged to the console. This does not appear to have user-impacting implications.
Steps to Reproduce (for bugs)
Expected Behavior
The two blocks are merged, and no error is logged.
Current Behavior
The two blocks are merged, but an error is logged:
Offending line of code:
https://github.com/tinymce/tinymce/blob/1c05b6686632fca6d7ffb3983febbbcbd740efd5/src/core/main/ts/dom/Selection.ts#L145
Possible Solution
It appears that despite the instance being destroyed in the
TinyMCE
component'scomponentWillUnmount
, an event callback for the keydown event is still being fired after removal.Some possible reasons to explore:
The text was updated successfully, but these errors were encountered: