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 Nov 26, 2013
1 parent 39ff5b3 commit 2623836
Showing 1 changed file with 4 additions and 1 deletion.
@@ -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.