mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Dialog: Add type="button" to the close button. Fixed #9312: Dialog: closes on enter in textbox in IE.
This commit is contained in:
5
ui/jquery.ui.dialog.js
vendored
5
ui/jquery.ui.dialog.js
vendored
@@ -342,7 +342,10 @@ $.widget( "ui.dialog", {
|
||||
}
|
||||
});
|
||||
|
||||
this.uiDialogTitlebarClose = $("<button></button>")
|
||||
// support: IE
|
||||
// Use type="button" to prevent enter keypresses in textboxes from closing the
|
||||
// dialog in IE (#9312)
|
||||
this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
|
||||
.button({
|
||||
label: this.options.closeText,
|
||||
icons: {
|
||||
|
||||
Reference in New Issue
Block a user