[CAL-280] mobile booking: selecting a day does not scroll first time (#5682)
This commit is contained in:
1 parent
d9846dca4c
commit
0b5a0186bc
1 file changed
+6
-4
@@ -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))) ||
|
||||
|
||||
Reference in new issue
Block a user