mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(date-picker): allow flatpickrProps
to override default flatpickr
options (#1198)
Fixes #1197
This commit is contained in:
parent
912d3796f0
commit
9c45c74d8d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue