mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Do not fill readonly fields
This commit is contained in:
parent
06b968d60b
commit
813acc3eb9
1 changed files with 4 additions and 0 deletions
|
|
@ -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 }));
|
||||
|
|
|
|||
Loading…
Reference in a new issue