Merge pull request #779 from keepassxreboot/fix/support_input_readonly

Ignore input fields with readOnly set
This commit is contained in:
Sami Vänttinen 2020-02-19 22:03:12 +02:00 committed by GitHub
commit 70de3bb7a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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