mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Trigger "input" event after select date
This commit is contained in:
parent
e21a2543b5
commit
8a60315d50
@ -1109,7 +1109,7 @@ $.extend( Datepicker.prototype, {
|
|||||||
if ( onSelect ) {
|
if ( onSelect ) {
|
||||||
onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); // trigger custom callback
|
onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); // trigger custom callback
|
||||||
} else if ( inst.input ) {
|
} 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 ) {
|
if ( inst.inline ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user