mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Set the type on buttons. Fixes #6128 - Dialog: Buttons are not type="button".
This commit is contained in:
parent
a2ddfd5107
commit
cd7f10d480
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);
|
||||
|
Loading…
Reference in New Issue
Block a user