File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -414,11 +414,7 @@ return $.widget( "ui.calendar", {
414414
415415 _select : function ( event , time ) {
416416 this . _setOption ( "value" , new Date ( time ) ) ;
417- this . _trigger ( "select" , event , {
418-
419- // TODO Replace with value option to initialise and read
420- date : this . value ( )
421- } ) ;
417+ this . _trigger ( "select" , event ) ;
422418 } ,
423419
424420 value : function ( value ) {
Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ $.widget( "ui.datepicker", {
9393 numberOfMonths : this . options . numberOfMonths ,
9494 showWeek : this . options . showWeek ,
9595 value : this . _getParsedValue ( ) ,
96- select : function ( event , data ) {
97- that . element . val ( data . date ) ;
96+ select : function ( event ) {
97+ that . element . val ( that . calendarInstance . value ( ) ) ;
9898 that . close ( ) ;
9999 that . _focusTrigger ( ) ;
100- that . _trigger ( "select" , event , data ) ;
100+ that . _trigger ( "select" , event ) ;
101101 }
102102 } )
103103 . calendar ( "instance" ) ;
You can’t perform that action at this time.
0 commit comments