Skip to content
Permalink
Browse files

Dialog: Add type="button" to the close button. Fixed #9312: Dialog: c…

…loses on enter in textbox in IE.

(cherry picked from commit c19e7b3)
  • Loading branch information...
tjvantoll authored and scottgonzalez committed May 23, 2013
1 parent 39ff5b3 commit 26238369bb113b487959322595e4814b441e5453
Showing with 4 additions and 1 deletion.
  1. +4 −1 ui/jquery.ui.dialog.js
@@ -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: {

0 comments on commit 2623836

Please sign in to comment.
You can’t perform that action at this time.