Skip to content

Commit

Permalink
Fix the current year selection in the date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Dec 1, 2022
1 parent 2699bbd commit 65de817
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Current year selection in the date picker

We applied a hotpatch to fix the selection of the current year in December in the date picker.

https://github.com/owncloud/web/pull/8058
https://github.com/owncloud/web/issues/8042
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@cucumber/messages": "17.1.1",
"@cucumber/pretty-formatter": "1.0.0",
"@noble/hashes": "1.1.3",
"@ownclouders/design-system": "workspace:*",
"@ownclouders/babel-preset": "workspace:*",
"@ownclouders/design-system": "workspace:*",
"@ownclouders/eslint-config": "workspace:*",
"@ownclouders/prettier-config": "workspace:*",
"@ownclouders/tsconfig": "workspace:*",
Expand Down Expand Up @@ -125,5 +125,10 @@
"packageManager": "[email protected]",
"volta": {
"node": "16.18.1"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
4 changes: 2 additions & 2 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"tippy.js": "^6.3.7",
"typescript": "^4.3.2",
"url-loader": "^4.1.1",
"v-calendar": "^2.3.2",
"v-calendar": "^2.3.4",
"vue-gettext": "^2.1.12",
"vue-inline-svg": "^2.0.0",
"vue-jest": "^3.0.4",
Expand All @@ -133,7 +133,7 @@
"postcss-import": "^12.0.1",
"postcss-url": "^9.0.0",
"tippy.js": "^6.3.7",
"v-calendar": "^2.3.2",
"v-calendar": "^2.3.4",
"vue": "^2.7.13",
"vue-inline-svg": "^2.0.0",
"vue-select": "^3.12.0",
Expand Down
1 change: 0 additions & 1 deletion packages/web-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"tippy.js": "^6.3.7",
"utf8": "^3.0.0",
"uuid": "^9.0.0",
"v-calendar": "^2.3.2",
"vue-async-computed": "^3.9.0",
"vue-concurrency": "4.0.0",
"vue-events": "^3.1.0",
Expand Down
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/components/date-picker.umd.js b/lib/components/date-picker.umd.js
index 571ada2a0d82ed79833600b75eca9a5ec670660f..124df53b7b8fe976c5afcc4588783b3c626cd8e2 100644
--- a/lib/components/date-picker.umd.js
+++ b/lib/components/date-picker.umd.js
@@ -17351,7 +17351,7 @@ const _yearGroupCount = 12;
for (let year = startYear; year < endYear; year += 1) {
let enabled = false;

- for (let month = 1; month < 12; month++) {
+ for (let month = 1; month <= 12; month++) {
enabled = this.validator({
month,
year
29 changes: 23 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65de817

Please sign in to comment.