Skip to content

Commit d1f1f11

Browse files
authored
Revert "Make buttons in a modal form have proper type. (#25446) (#25478)" (#25484)
There is a side effect because some modal doesn't have a proper "ok" button. This reverts commit 050c38c.
1 parent 2cd9d6b commit d1f1f11

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
@@ -345,8 +345,6 @@ export function initGlobalButtons() {
345345
if (colorPickers.length > 0) {
346346
initCompColorPicker();
347347
}
348-
// all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter"
349-
$($(this).attr('data-modal')).find('form button:not(.ok):not([type])').attr('type', 'button');
350348
});
351349

352350
$('.delete-post.button').on('click', function (e) {

0 commit comments

Comments
 (0)