Skip to content

Commit

Permalink
Datepicker: Fix prev/next button behavior with showCurrentAtPos
Browse files Browse the repository at this point in the history
Fixes #15102
Closes gh-1784
  • Loading branch information
sunshineKE authored and scottgonzalez committed Jan 25, 2017
1 parent 573e7e6 commit 17404ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/widgets/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
},

Expand Down

0 comments on commit 17404ce

Please sign in to comment.