diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2013-05-22 21:43:40 -0400 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2013-05-23 19:57:32 -0400 |
commit | c19e7b3496d14b40e71ba892213889fc8cc81d4f (patch) | |
tree | 9eca40d7e1a6d72d713a076a1a57aca2301fc7b5 /ui | |
parent | daf3f0d9af5b29dc090e15d57cf884e3c12f7cad (diff) | |
download | jquery-ui-c19e7b3496d14b40e71ba892213889fc8cc81d4f.tar.gz jquery-ui-c19e7b3496d14b40e71ba892213889fc8cc81d4f.zip |
Dialog: Add type="button" to the close button. Fixed #9312: Dialog: closes on enter in textbox in IE.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index b01907acf..16095292c 100644 --- a/ui/jquery.ui.dialog.js +++ b/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: { |