mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are not type="button".
This commit is contained in:
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@@ -376,7 +376,7 @@ $.widget("ui.dialog", {
|
||||
props = $.isFunction( props ) ?
|
||||
{ click: props, text: name } :
|
||||
props;
|
||||
var button = $('<button></button>', props)
|
||||
var button = $('<button type="button"></button>', props)
|
||||
.unbind('click')
|
||||
.click(function() {
|
||||
props.click.apply(self.element[0], arguments);
|
||||
|
||||
Reference in New Issue
Block a user