diff --git a/packages/lexical-playground/src/plugins/ImagesPlugin.ts b/packages/lexical-playground/src/plugins/ImagesPlugin.ts index 4cd4b4b28a0..1e2f139ee29 100644 --- a/packages/lexical-playground/src/plugins/ImagesPlugin.ts +++ b/packages/lexical-playground/src/plugins/ImagesPlugin.ts @@ -149,9 +149,6 @@ function onDrop(event: DragEvent, editor: LexicalEditor): boolean { if (canDropImage(event)) { const range = getDragSelection(event); node.remove(); - const domSelection = getSelection(); - domSelection.removeAllRanges(); - domSelection.addRange(range); const rangeSelection = $createRangeSelection(); rangeSelection.applyDOMRange(range); $setSelection(rangeSelection);