You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
0.99.0 must have introduced a regression as formerly working ReactEditor.focus(editor) now crashes with "Cannot resolve DOM point..." in some cases.
So I guess it was this PR #5516 as its calling toDOMRange
Its happening if we call it right after editor.undo() and the operations being:
undo split:
insert_node
remove_node
remove_node
set_select
CRASH
Description
0.99.0 must have introduced a regression as formerly working
ReactEditor.focus(editor)
now crashes with "Cannot resolve DOM point..." in some cases.So I guess it was this PR #5516 as its calling
toDOMRange
Its happening if we call it right after
editor.undo()
and the operations being:undo split:
insert_node
remove_node
remove_node
set_select
CRASH
undo merge:
insert_node
remove_node
insert_node
CRASH
if we call
editor.deselect()
beforeeditor.focus()
it doesnt crash as the new code from0.99.0
isnt triggered thenThe text was updated successfully, but these errors were encountered: