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.
isNotAnnotatable
1 parent 68d5e26 commit ecd49deCopy full SHA for ecd49de
packages/text-annotator/src/utils/splitAnnotatableRanges.ts
@@ -2,7 +2,7 @@ export const NOT_ANNOTATABLE_CLASS = 'not-annotatable';
2
3
export const NOT_ANNOTATABLE_SELECTOR = `.${NOT_ANNOTATABLE_CLASS}`;
4
5
-export const isNotAnnotatable = <T extends Node>(node: T): boolean => {
+export const isNotAnnotatable = (node: Node): boolean => {
6
const closestNotAnnotatable = node instanceof HTMLElement
7
? node.closest(NOT_ANNOTATABLE_SELECTOR)
8
: node.parentElement?.closest(NOT_ANNOTATABLE_SELECTOR);
0 commit comments