Merged in fix/SW-3553-logged-in-details-page- (pull request #3016)

fix(SW-3553): Fixed scroll lock after payment failure & user menu open

Approved-by: Joakim Jäderberg
This commit is contained in:
Hrishikesh Vaipurkar
2025-11-03 07:57:09 +00:00
parent 3590a88031
commit a7593597a6

View File

@@ -129,6 +129,7 @@ export default function BookingAlert({ isVisible = false }: BookingAlertProps) {
const el = ref.current
if (showAlert && el) {
document.documentElement.style.overflow = ""
window.scrollTo({
top: el.offsetTop - getTopOffset(),
behavior: "smooth",