mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1841 from keepassxreboot/fix/dont_fill_readonly_fields
Do not fill readonly fields
This commit is contained in:
commit
8d429b70b9
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