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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user