diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-01-25 08:51:13 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-01-25 08:51:13 -0500 |
commit | c53198c2099d25e80887c86af6d0e624414cc2f7 (patch) | |
tree | c40cfc0f10c04f3648c981a392ecdd39a6936140 /ui | |
parent | f20cd5429adac5d99f69c2de51d04b2d5f421799 (diff) | |
download | jquery-ui-c53198c2099d25e80887c86af6d0e624414cc2f7.tar.gz jquery-ui-c53198c2099d25e80887c86af6d0e624414cc2f7.zip |
Dialog: Allow interaction with datepickers from modal dialogs. Fixes #8989 - Dialog: Cannot change month/year in datepicker within modal.
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 bfe37235e..1d3a7a88f 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -679,7 +679,10 @@ $.widget( "ui.dialog", { if ( $.ui.dialog.overlayInstances ) { this._on( this.document, { focusin: function( event ) { - if ( !$( event.target ).closest(".ui-dialog").length ) { + if ( !$( event.target ).closest(".ui-dialog").length && + // TODO: Remove hack when datepicker implements + // the .ui-front logic (#8989) + !$( event.target ).closest(".ui-datepicker").length ) { event.preventDefault(); $(".ui-dialog:visible:last .ui-dialog-content") .data("ui-dialog")._focusTabbable(); |