From 02b3672dbe74ddaa077eb53b0f6aa414a3405ab0 Mon Sep 17 00:00:00 2001 From: Adam Heinz Date: Wed, 6 Jan 2021 08:54:55 -0500 Subject: [PATCH] Fix prev/next button behavior with `showCurrentAtPos`. https://github.com/jquery/jquery-ui/commit/17404ced478a235651513fa7bef3473ef1b039e8 --- addons/web/static/lib/jquery.ui/jquery-ui.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/web/static/lib/jquery.ui/jquery-ui.js b/addons/web/static/lib/jquery.ui/jquery-ui.js index d4b4ebabe1770..870ea5a5e7fd3 100644 --- a/addons/web/static/lib/jquery.ui/jquery-ui.js +++ b/addons/web/static/lib/jquery.ui/jquery-ui.js @@ -8802,9 +8802,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 ); },