flowbite-svelte
Advanced tools
Changelog
1.10.10
fix(datepicker): Add a guard to avoid re-calling handleDaySelect() if the range is already complete.
problem: Pressing the return/enter key after selecting datepicker range by using mouse doesn't close the calender and selecting today's date.
Changelog
1.10.9
Changelog
1.10.8
fix: #1684
feat(datepicker): Allow translationLocale
prop to be reactive
Ensures the calendar's locale updates correctly when translationLocale
(or locale
when translationLocale
isn't explicitly set) changes. This provides independent control over date formatting and calendar translations.
Changelog
1.10.7
Changelog
1.10.6
Changelog
1.10.4
feat(sidebar, drawer): #1664 Fix content visibility and breakpoint conflicts (10d9aef
)
Resolves an issue where Sidebar content disappeared on mobile when nested within Drawer. The sidebar tv variant's isOpen: false setting was applying display: hidden, conflicting with Drawer's visibility control.
Changes:
theme.ts: Removed isOpen variant from sidebar tv definition.
Sidebar.svelte: Simplified rendering logic when disableBreakpoints is true, ensuring content always renders.
Usage: Ensures isOpen={!isDrawerHidden} is passed to Sidebar to sync with Drawer's state.
The Drawer now solely controls Sidebar's visibility, eliminating display conflicts.
fix(sidebar): Resolve dynamic resize responsiveness (c2a5445
)
Corrects an issue where the standalone Sidebar failed to show/hide responsively on dynamic screen size changes (e.g., dev tools). Modified Sidebar.svelte to ensure the element is always in the DOM and its display is controlled by Tailwind's responsive classes via tailwind-variants in theme.ts.
fix: #1678, #1679
Changelog
1.10.3
fix: #1677 Handle nullish values in Input component's defaultHandleInput
Ensures robust handling of value in defaultHandleInput by safely converting it to a string, preventing TypeError when input is cleared or null/undefined.
Changelog
1.10.2
Previously, clicking an item in the MultiSelect dropdown would cause the dropdown to close, leading to a suboptimal user experience for multi-selection. This commit resolves the issue by:
selectOption
to stopPropagation
of the click event.bind:this
and onMount
/onDestroy
lifecycle hooks to handle clicks outside the component for proper dropdown closure.theme.ts
with compoundVariants
for dropdownitem
to provide a clear visual distinction when an item is both keyboard active
and selected
. This improves accessibility and clarity during keyboard navigation.handleBlur
related to event.currentTarget
potentially being null and EventTarget
lacking a contains
method, ensuring type safety.Changelog
1.10.1