fix: booking widget locking scroll
This commit is contained in:
@@ -20,7 +20,7 @@ const formId = "booking-widget"
|
||||
export default function Form({
|
||||
locations,
|
||||
type,
|
||||
setIsOpen,
|
||||
onClose,
|
||||
}: BookingWidgetFormProps) {
|
||||
const router = useRouter()
|
||||
const lang = useLang()
|
||||
@@ -56,7 +56,7 @@ export default function Form({
|
||||
)
|
||||
})
|
||||
})
|
||||
setIsOpen(false)
|
||||
onClose()
|
||||
router.push(`${bookingFlowPage}?${bookingWidgetParams.toString()}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user