Merge pull request #1841 from keepassxreboot/fix/dont_fill_readonly_fields

Do not fill readonly fields
This commit is contained in:
Sami Vänttinen 2023-01-27 13:41:54 +02:00 committed by GitHub
commit 8d429b70b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -663,6 +663,10 @@ kpxc.setValue = function(field, value) {
// Sets a new value to input field and triggers necessary events
kpxc.setValueWithChange = function(field, value) {
if (field.readOnly) {
return;
}
field.value = value;
field.dispatchEvent(new Event('input', { bubbles: true }));
field.dispatchEvent(new Event('change', { bubbles: true }));