Parse input fields correctly before passing them forward

This commit is contained in:
varjolintu 2020-07-09 08:43:03 +03:00
parent c88ee5bbfc
commit e7f7163ea0

View file

@ -962,7 +962,7 @@ kpxc.initObserver = function() {
// Check if some class is changed that holds a form or input field(s). Ignore large forms.
const formInput = mut.target.querySelector('form input');
if (mut.attributeName === 'class' && formInput !== null && formInput.form.length < 20) {
kpxc.handleCredentialFields(Array.from(formInput.form.getElementsByTagName('input')));
kpxc.handleCredentialFields(kpxcObserverHelper.getInputs(formInput.form));
continue;
}