Skip to content

Commit

Permalink
Datepicker: Trigger "input" event after select date
Browse files Browse the repository at this point in the history
  • Loading branch information
worpet committed May 25, 2022
1 parent e21a254 commit 8a60315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/widgets/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ $.extend( Datepicker.prototype, {
if ( onSelect ) {
onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); // trigger custom callback
} else if ( inst.input ) {
inst.input.trigger( "change" ); // fire the change event
inst.input.trigger( "input" ).trigger( "change" ); // fire the input and change events
}

if ( inst.inline ) {
Expand Down

0 comments on commit 8a60315

Please sign in to comment.