Skip to content

Commit

Permalink
Merge pull request #46 from whitemusices/3.x
Browse files Browse the repository at this point in the history
Bug Fix: Month Selector and Week Selector
  • Loading branch information
coolsam726 authored Mar 21, 2024
2 parents fe06bba + 8aed282 commit 62a872c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
7 changes: 4 additions & 3 deletions resources/js/components/flatpickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ export default function flatpickrDatepicker(args) {
el.href = this.attribs.darkThemeAsset;
}
}

if (this.attribs.monthSelect) {
config.plugins.push(new MonthSelect({
shorthand: false, //defaults to false
dateFormat: "F Y", //defaults to "F Y"
altInput: true,
altFormat: "F, Y", //defaults to "F Y"
dateFormat: args.packageConfig.dateFormat ?? "F Y", //defaults to "F Y"
altInput: args.packageConfig.altInput ?? true,
altFormat: args.packageConfig.altFormat ?? "F, Y",
theme: this.mode // defaults to "light"
}))
} else if (this.attribs.weekSelect) {
Expand Down
Loading

0 comments on commit 62a872c

Please sign in to comment.