mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add submit button type to query
This commit is contained in:
parent
059d0ccf50
commit
8e1ef61215
1 changed files with 1 additions and 1 deletions
|
|
@ -1190,7 +1190,7 @@ kpxc.getFormSubmitButton = function(form) {
|
|||
}
|
||||
|
||||
// Try to find another button. Select the first one.
|
||||
const buttons = Array.from(form.querySelectorAll('button[type=\'button\'], input[type=\'button\'], button:not([type])'));
|
||||
const buttons = Array.from(form.querySelectorAll('button[type=\'button\'], button[type=\'submit\'], input[type=\'button\'], button:not([type])'));
|
||||
if (buttons.length > 0) {
|
||||
return buttons[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue