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 @@ -76,7 +76,9 @@ return $.widget( "ui.calendar", {
76
76
// TODO Exclude clicks on lead days or handle them correctly
77
77
// TODO Store/read more then just date, also required for multi month picker
78
78
this . _select ( event , $ ( event . currentTarget ) . data ( "timestamp" ) ) ;
79
- this . grid . focus ( 1 ) ;
79
+ this . _delay ( function ( ) {
80
+ this . grid . focus ( ) ;
81
+ } ) ;
80
82
} ,
81
83
"mouseenter .ui-calendar-header button" : "_hover" ,
82
84
"mouseleave .ui-calendar-header button" : "_hover" ,
@@ -132,7 +134,9 @@ return $.widget( "ui.calendar", {
132
134
133
135
if ( this . date . month ( ) !== oldMonth || this . date . year ( ) !== oldYear ) {
134
136
this . refresh ( ) ;
135
- this . grid . focus ( 1 ) ;
137
+ this . _delay ( function ( ) {
138
+ this . grid . focus ( ) ;
139
+ } ) ;
136
140
}
137
141
138
142
this . _setActiveDescendant ( ) ;
Original file line number Diff line number Diff line change @@ -119,7 +119,9 @@ var widget = $.widget( "ui.datepicker", {
119
119
clearTimeout ( this . closeTimer ) ;
120
120
this . _delay ( function ( ) {
121
121
this . open ( event ) ;
122
- this . calendarInstance . grid . focus ( 1 ) ;
122
+ this . _delay ( function ( ) {
123
+ this . calendarInstance . grid . focus ( ) ;
124
+ } ) ;
123
125
} , 1 ) ;
124
126
break ;
125
127
}
You can’t perform that action at this time.
0 commit comments