Datepicker: Trigger "input" event after select date

This commit is contained in:
Bill Orpet 2022-05-25 13:26:56 -05:00 committed by GitHub
parent e21a2543b5
commit 8a60315d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ) {