don't query changed text nodes for children elements

This commit is contained in:
Dimitri Benin 2018-05-13 15:12:31 +02:00
parent 6eb096cd01
commit e404f871a3

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