diff --git a/packages/text-annotator/src/SelectionHandler.ts b/packages/text-annotator/src/SelectionHandler.ts index 626a74a8..13bcc0ee 100644 --- a/packages/text-annotator/src/SelectionHandler.ts +++ b/packages/text-annotator/src/SelectionHandler.ts @@ -219,7 +219,6 @@ export const SelectionHandler = ( currentTarget = undefined; clickSelect(); } else if (currentTarget && currentTarget.selector.length > 0) { - selection.clear(); upsertCurrentTarget(); selection.userSelect(currentTarget.annotation, clonePointerEvent(evt)); } @@ -247,7 +246,6 @@ export const SelectionHandler = ( const sel = document.getSelection(); if (!sel.isCollapsed) { - selection.clear(); upsertCurrentTarget(); selection.userSelect(currentTarget.annotation, cloneKeyboardEvent(evt)); }