diff --git a/lib/src/editor/raw_editor/raw_editor_state.dart b/lib/src/editor/raw_editor/raw_editor_state.dart index 866f0e68..fbb6b152 100644 --- a/lib/src/editor/raw_editor/raw_editor_state.dart +++ b/lib/src/editor/raw_editor/raw_editor_state.dart @@ -1422,8 +1422,7 @@ class QuillRawEditorState extends EditorState if (!_hasFocus || textEditingValue.selection.isCollapsed) { _selectionOverlay?.dispose(); _selectionOverlay = null; - } - if (_hasFocus) { + } else if (_hasFocus) { _selectionOverlay!.update(textEditingValue); } } else if (_hasFocus) {