Skip to content

Commit e9090df

Browse files
committed
Enable dynamicPositioning by default
1 parent 88387b9 commit e9090df

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

33
## Next
4-
- Require Svelte 5
4+
- **Breaking**: Require Svelte 5
5+
- **Breaking**: Enable DateInput `dynamicPositioning` by default. If there's not enough space on the screen, this means the popup can appear above/below and right/left-aligned to the input. If your `DateInput` is near the edge of a non-overflow/scollable container, check how it behaves.
56

67
## 2.17.0 - 2025 Nov 28
78
- Add `initialBrowseDate` prop (@endaaman)

‎src/lib/DateInput.svelte‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
/** Disallow specific dates */
4545
isDisabledDate?: ((dateToCheck: Date) => boolean) | null
4646
/** Automatically adjust date popup position to not appear outside the screen */
47-
// todo: enable by default
4847
dynamicPositioning?: boolean
4948
/** Fires when the user selects a new value by clicking on a date or by pressing enter */
5049
onselect?: (date: Date) => void
@@ -75,7 +74,7 @@
7574
closeOnSelection = $bindable(false),
7675
browseWithoutSelecting = $bindable(false),
7776
timePrecision = $bindable(null),
78-
dynamicPositioning = $bindable(false),
77+
dynamicPositioning = $bindable(true),
7978
onselect,
8079
children,
8180
}: Props = $props()

‎src/routes/DemoDateInput.svelte‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
closeOnSelection = false,
2828
browseWithoutSelecting = false,
2929
timePrecision = null,
30-
dynamicPositioning = false,
30+
dynamicPositioning = true,
3131
} = {}
3232
3333
let locales = [

0 commit comments

Comments
 (0)