Skip to content
Permalink
Browse files

Dialog: Allow interaction with datepickers from modal dialogs. Fixes …

…#8989 - Dialog: Cannot change month/year in datepicker within modal.
  • Loading branch information...
scottgonzalez committed Jan 25, 2013
1 parent f20cd54 commit c53198c2099d25e80887c86af6d0e624414cc2f7
Showing with 4 additions and 1 deletion.
  1. +4 −1 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();

0 comments on commit c53198c

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