Skip to content

Commit b825360

Browse files
authored
Revert "Make buttons in a modal form have proper type. (#25446)" (#25485)
There is a side effect because some modal doesn't have a proper "ok" button. This reverts commit a954c93.
1 parent 77e449f commit b825360

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

web_src/js/features/common-global.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ function initGlobalShowModal() {
395395
if (colorPickers.length > 0) {
396396
initCompColorPicker(); // FIXME: this might cause duplicate init
397397
}
398-
// all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter"
399-
$modal.find('form button:not(.ok):not([type])').attr('type', 'button');
400398
$modal.modal('setting', {
401399
onApprove: () => {
402400
// "form-fetch-action" can handle network errors gracefully,

0 commit comments

Comments
 (0)