Skip to content

Commit 17404ce

Browse files
authored andcommitted
Datepicker: Fix prev/next button behavior with showCurrentAtPos
Fixes #15102 Closes gh-1784
1 parent 573e7e6 commit 17404ce

File tree

Image for: File tree

1 file changed

Image for: 1 file changed
+1
-3
lines changed

1 file changed

Image for: 1 file changed
+1
-3
lines changed

‎ui/widgets/datepicker.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,9 +988,7 @@ $.extend( Datepicker.prototype, {
988988
if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
989989
return;
990990
}
991-
this._adjustInstDate( inst, offset +
992-
( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning
993-
period );
991+
this._adjustInstDate( inst, offset, period );
994992
this._updateDatepicker( inst );
995993
},
996994

0 commit comments

Image for: 0 commit comments
Comments
 (0)