Skip to content

Commit a22d435

Browse files
Don't highlight a date if none is selected
1 parent 9463a54 commit a22d435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/DatePicker.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
$: getMonth(shownDate)
100100
$: setMonth(month)
101101
102-
let dayOfMonth = shownDate.getDate()
103-
$: dayOfMonth = shownDate.getDate()
102+
let dayOfMonth = value?.getDate() || null
103+
$: dayOfMonth = value?.getDate() || null
104104
105105
$: calendarDays = getCalendarDays(shownDate, iLocale.weekStartsOn)
106106

0 commit comments

Comments
 (0)