File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -420,10 +420,7 @@ return $.widget( "ui.calendar", {
420
420
421
421
_select : function ( event , time ) {
422
422
this . _setOption ( "value" , new Date ( time ) ) ;
423
- this . _trigger ( "select" , event , {
424
- // TODO Replace with value option to initialise and read
425
- date : this . value ( )
426
- } ) ;
423
+ this . _trigger ( "select" , event ) ;
427
424
} ,
428
425
429
426
value : function ( value ) {
Original file line number Diff line number Diff line change @@ -90,11 +90,11 @@ $.widget( "ui.datepicker", {
90
90
numberOfMonths : this . options . numberOfMonths ,
91
91
showWeek : this . options . showWeek ,
92
92
value : this . _getParsedValue ( ) ,
93
- select : function ( event , data ) {
94
- that . element . val ( data . date ) ;
93
+ select : function ( event ) {
94
+ that . element . val ( that . calendarInstance . value ( ) ) ;
95
95
that . close ( ) ;
96
96
that . _focusTrigger ( ) ;
97
- that . _trigger ( "select" , event , data ) ;
97
+ that . _trigger ( "select" , event ) ;
98
98
}
99
99
} )
100
100
. calendar ( "instance" ) ;
You can’t perform that action at this time.
0 commit comments