We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent c5ffd36 commit 87587d2Copy full SHA for 87587d2
packages/text-annotator/src/SelectionHandler.ts
@@ -80,7 +80,7 @@ export const SelectionHandler = (
80
// This is to handle cases where the selection is "hijacked" by another element
81
// in a not-annotatable area. A rare case in theory. But rich text editors
82
// will like Quill do it...
83
- if (isNotAnnotatable(sel.anchorNode)) {
+ if (!sel?.isCollapsed && isNotAnnotatable(sel.anchorNode)) {
84
currentTarget = undefined;
85
return;
86
}
0 commit comments