mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Allow interaction with datepickers from modal dialogs. Fixes #8989 - Dialog: Cannot change month/year in datepicker within modal.
This commit is contained in:
parent
f20cd5429a
commit
c53198c209
5
ui/jquery.ui.dialog.js
vendored
5
ui/jquery.ui.dialog.js
vendored
@ -679,7 +679,10 @@ $.widget( "ui.dialog", {
|
|||||||
if ( $.ui.dialog.overlayInstances ) {
|
if ( $.ui.dialog.overlayInstances ) {
|
||||||
this._on( this.document, {
|
this._on( this.document, {
|
||||||
focusin: function( event ) {
|
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();
|
event.preventDefault();
|
||||||
$(".ui-dialog:visible:last .ui-dialog-content")
|
$(".ui-dialog:visible:last .ui-dialog-content")
|
||||||
.data("ui-dialog")._focusTabbable();
|
.data("ui-dialog")._focusTabbable();
|
||||||
|
Loading…
Reference in New Issue
Block a user