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.
1 parent 9ce6e88 commit 23f762aCopy full SHA for 23f762a
packages/text-annotator/src/SelectionHandler.ts
@@ -149,6 +149,9 @@ export const SelectionHandler = (
149
*/
150
if (store.getAnnotation(currentTarget.annotation)) {
151
store.updateTarget(currentTarget, Origin.LOCAL);
152
+ } else {
153
+ // Proper lifecycle management: clear the previous selection first...
154
+ selection.clear();
155
}
156
});
157
0 commit comments