fix(date-picker): allow flatpickrProps to override default flatpickr options (#1198)

Fixes #1197
This commit is contained in:
Floris Bernard 2022-03-23 16:02:44 +01:00 committed by GitHub
commit 9c45c74d8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,6 @@ async function createCalendar({ options, base, input, dispatch }) {
}
return new flatpickr(base, {
...options,
allowInput: true,
disableMobile: true,
clickOpens: true,
@ -94,6 +93,7 @@ async function createCalendar({ options, base, input, dispatch }) {
updateClasses(instance);
updateMonthNode(instance);
},
...options,
});
}