[CAL-280] mobile booking: selecting a day does not scroll first time (#5682)

This commit is contained in:
GitStart authored and GitHub committed 2022-11-26 23:10:31 +00:00
1 parent d9846dca4c
commit 0b5a0186bc
1 file changed
+6 -4
+6 -4
View File
@@ -105,10 +105,12 @@ const Days = ({
date={day}
onClick={() => {
props.onChange(day);
window.scrollTo({
top: 360,
behavior: "smooth",
});
setTimeout(() => {
window.scrollTo({
top: 360,
behavior: "smooth",
});
}, 500);
}}
disabled={
(includedDates && !includedDates.includes(yyyymmdd(day))) ||