mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #157 from BendingBender/fix-text-node-exceptions
Stop querying changed text nodes for children elements
This commit is contained in:
commit
47824604f6
1 changed files with 5 additions and 0 deletions
|
|
@ -1143,6 +1143,11 @@ let observer = new MutationObserver(function(mutations, observer) {
|
|||
}
|
||||
|
||||
for (const mut of mutations) {
|
||||
// skip text nodes
|
||||
if (mut.target.nodeType === Node.TEXT_NODE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check if the added element has any inputs
|
||||
const inputs = mut.target.querySelectorAll(cipFields.inputQueryPattern);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue