Skip to content
Permalink
Browse files

Datepicker: Fix prev/next button behavior with `showCurrentAtPos`

Fixes #15102
Closes gh-1784
  • Loading branch information...
sunshineKE authored and scottgonzalez committed Jan 12, 2017
1 parent 573e7e6 commit 17404ced478a235651513fa7bef3473ef1b039e8
Showing with 1 addition and 3 deletions.
  1. +1 −3 ui/widgets/datepicker.js
@@ -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 );
},

0 comments on commit 17404ce

Please sign in to comment.
You can’t perform that action at this time.