Merge pull request #157 from BendingBender/fix-text-node-exceptions

Stop querying changed text nodes for children elements
This commit is contained in:
Janek Bevendorff 2018-05-14 09:57:59 +02:00 committed by GitHub
commit 47824604f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);