Skip to content

Commit c53198c

Browse files
committed
Dialog: Allow interaction with datepickers from modal dialogs. Fixes #8989 - Dialog: Cannot change month/year in datepicker within modal.
1 parent f20cd54 commit c53198c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,10 @@ $.widget( "ui.dialog", {
679679
if ( $.ui.dialog.overlayInstances ) {
680680
this._on( this.document, {
681681
focusin: function( event ) {
682-
if ( !$( event.target ).closest(".ui-dialog").length ) {
682+
if ( !$( event.target ).closest(".ui-dialog").length &&
683+
// TODO: Remove hack when datepicker implements
684+
// the .ui-front logic (#8989)
685+
!$( event.target ).closest(".ui-datepicker").length ) {
683686
event.preventDefault();
684687
$(".ui-dialog:visible:last .ui-dialog-content")
685688
.data("ui-dialog")._focusTabbable();

0 commit comments

Comments
 (0)