Skip to content

Commit

Permalink
Merge pull request #2676 from koesper/master
Browse files Browse the repository at this point in the history
fixes #2669 monthSelectPlugin doesnt highlight correct month, when data is loaded
  • Loading branch information
chmln committed Apr 14, 2022
2 parents 159d0d4 + ff1b1a4 commit 9a08eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/monthSelect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ function monthSelectPlugin(pluginConfig?: Partial<Config>): Plugin {
function stubCurrentMonth() {
config._stubbedCurrentMonth = fp._initialDate.getMonth();

fp._initialDate.setMonth(0);
fp.currentMonth = 0;
fp._initialDate.setMonth(config._stubbedCurrentMonth);
fp.currentMonth = config._stubbedCurrentMonth;
}

function unstubCurrentMonth() {
Expand Down

0 comments on commit 9a08eab

Please sign in to comment.