mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Fix prev/next button behavior with showCurrentAtPos
Fixes #15102 Closes gh-1784
This commit is contained in:
parent
573e7e69c9
commit
17404ced47
@ -988,9 +988,7 @@ $.extend( Datepicker.prototype, {
|
||||
if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
|
||||
return;
|
||||
}
|
||||
this._adjustInstDate( inst, offset +
|
||||
( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning
|
||||
period );
|
||||
this._adjustInstDate( inst, offset, period );
|
||||
this._updateDatepicker( inst );
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user