Permalink
Browse files

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

…loses on enter in textbox in IE.
  • Loading branch information...
tjvantoll committed May 23, 2013
1 parent daf3f0d commit c19e7b3496d14b40e71ba892213889fc8cc81d4f
Showing with 4 additions and 1 deletion.
  1. +4 −1 ui/jquery.ui.dialog.js
View
@@ -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 c19e7b3

Please sign in to comment.