mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
Watch for childList instead of subtree
This commit is contained in:
parent
b361bcc69f
commit
4576ce8cc3
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ function moveNodesInsertedOutside(element: Element, allowedChild: Node): () => v
|
|||
}
|
||||
});
|
||||
|
||||
observer.observe(element, { characterData: true, subtree: true });
|
||||
observer.observe(element, { childList: true, characterData: true });
|
||||
return () => observer.disconnect();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue