Skip to content

Commit 290e8cc

Browse files
committed
fix: bugfix - un-enlarge day when picker closes
1 parent a2fe11a commit 290e8cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/components/calendar/DayPicker.svelte

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
store.setDay(day || $store.selected);
2525
if (!$store.shouldEnlargeDay) return store.selectDay();
2626
store.enlargeDay();
27-
setTimeout(() => store.selectDay(), duration + 60);
27+
setTimeout(() => {
28+
store.selectDay();
29+
store.enlargeDay(false);
30+
}, duration + 60);
2831
};
2932
3033
const KEY_MAPPINGS = {

0 commit comments

Comments
 (0)