Skip to content

Commit

Permalink
flatpickrType replaced with flatpickr-formio (formio#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyNikipelau authored Dec 7, 2022
1 parent 876104e commit 3407c9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/CalendarWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class CalendarWidget extends InputWidget {
};

Formio.requireLibrary('flatpickr-css', 'flatpickr', [
{ type: 'styles', src: `${Formio.cdn[this.flatpickrType]}/flatpickr.min.css` }
{ type: 'styles', src: `${Formio.cdn['flatpickr-formio']}/flatpickr.min.css` }
], true);

if (this.component.shortcutButtons) {
Expand All @@ -181,7 +181,7 @@ export default class CalendarWidget extends InputWidget {
}
})
.then((ShortcutButtonsPlugin) => {
return Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio.cdn[this.flatpickrType]}/flatpickr.min.js`, true)
return Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio.cdn['flatpickr-formio']}/flatpickr.min.js`, true)
.then((Flatpickr) => {
if (this.component.shortcutButtons?.length && ShortcutButtonsPlugin) {
this.initShortcutButtonsPlugin(ShortcutButtonsPlugin);
Expand Down

0 comments on commit 3407c9a

Please sign in to comment.