Ignore input fields with readOnly

This commit is contained in:
varjolintu 2020-02-19 20:52:04 +02:00
parent e1e5da2036
commit d36d4f4c36

View file

@ -653,7 +653,7 @@ kpxcObserverHelper.getInputs = function(target) {
// Filter out any input fields with type 'hidden' right away
const inputFields = [];
Array.from(target.getElementsByTagName('input')).forEach((e) => {
if (e.type !== 'hidden') {
if (e.type !== 'hidden' && !e.readOnly) {
inputFields.push(e);
}
});