Skip to content

Commit

Permalink
fix: bugfix - un-enlarge day when picker closes
Browse files Browse the repository at this point in the history
  • Loading branch information
6eDesign committed Sep 19, 2021
1 parent a2fe11a commit 290e8cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/components/calendar/DayPicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
store.setDay(day || $store.selected);
if (!$store.shouldEnlargeDay) return store.selectDay();
store.enlargeDay();
setTimeout(() => store.selectDay(), duration + 60);
setTimeout(() => {
store.selectDay();
store.enlargeDay(false);
}, duration + 60);
};
const KEY_MAPPINGS = {
Expand Down

0 comments on commit 290e8cc

Please sign in to comment.