mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #741 from keepassxreboot/fix/add_submit_button_to_query
Add submit button type to query with forms
This commit is contained in:
commit
d4fa2f7155
1 changed files with 1 additions and 1 deletions
|
|
@ -1198,7 +1198,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