File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ return $.widget( "ui.calendar", {
81
81
// TODO Exclude clicks on lead days or handle them correctly
82
82
// TODO Store/read more then just date, also required for multi month picker
83
83
this . _select ( event , $ ( event . currentTarget ) . data ( "timestamp" ) ) ;
84
- this . grid . focus ( ) ;
84
+ this . _delay ( function ( ) {
85
+ this . grid . focus ( ) ;
86
+ } ) ;
85
87
} ,
86
88
"mouseenter .ui-calendar-header button" : "_hover" ,
87
89
"mouseleave .ui-calendar-header button" : "_hover" ,
@@ -137,7 +139,9 @@ return $.widget( "ui.calendar", {
137
139
138
140
if ( this . date . month ( ) !== oldMonth || this . date . year ( ) !== oldYear ) {
139
141
this . refresh ( ) ;
140
- this . grid . focus ( ) ;
142
+ this . _delay ( function ( ) {
143
+ this . grid . focus ( ) ;
144
+ } ) ;
141
145
}
142
146
143
147
this . _setActiveDescendant ( ) ;
Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ var widget = $.widget( "ui.datepicker", {
124
124
clearTimeout ( this . closeTimer ) ;
125
125
this . _delay ( function ( ) {
126
126
this . open ( event ) ;
127
- this . calendarInstance . grid . focus ( ) ;
127
+ this . _delay ( function ( ) {
128
+ this . calendarInstance . grid . focus ( ) ;
129
+ } ) ;
128
130
} , 1 ) ;
129
131
break ;
130
132
}
You can’t perform that action at this time.
0 commit comments