mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix password generator fill
This commit is contained in:
parent
88599acac8
commit
369d496bb8
2 changed files with 4 additions and 2 deletions
|
|
@ -1417,8 +1417,8 @@ kpxc.setValue = function(field, value) {
|
|||
// Sets a new value to input field and triggers necessary events
|
||||
kpxc.setValueWithChange = function(field, value) {
|
||||
field.value = value;
|
||||
field.dispatchEvent(new Event('input', { 'bubbles': true }));
|
||||
field.dispatchEvent(new Event('change', { 'bubbles': true }));
|
||||
field.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
field.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
field.dispatchEvent(new KeyboardEvent('keydown', { bubbles: true, cancelable: false, key: '', char: '' }));
|
||||
field.dispatchEvent(new KeyboardEvent('keypress', { bubbles: true, cancelable: false, key: '', char: '' }));
|
||||
field.dispatchEvent(new KeyboardEvent('keyup', { bubbles: true, cancelable: false, key: '', char: '' }));
|
||||
|
|
|
|||
|
|
@ -283,6 +283,8 @@ kpxcPasswordDialog.fill = function(e) {
|
|||
}
|
||||
|
||||
kpxcPasswordDialog.input.value = password.value;
|
||||
kpxcPasswordDialog.input.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
kpxcPasswordDialog.input.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
|
||||
if (kpxcPasswordDialog.nextField) {
|
||||
kpxcPasswordDialog.nextField.value = password.value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue