Skip to content

Commit cd7f10d

Browse files
committed
Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are not type="button".
1 parent a2ddfd5 commit cd7f10d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ $.widget("ui.dialog", {
376376
props = $.isFunction( props ) ?
377377
{ click: props, text: name } :
378378
props;
379-
var button = $('<button></button>', props)
379+
var button = $('<button type="button"></button>', props)
380380
.unbind('click')
381381
.click(function() {
382382
props.click.apply(self.element[0], arguments);

0 commit comments

Comments
 (0)