fix: make sure ancillaries also listen to invalidate requests

This commit is contained in:
Simon Emanuelsson
2025-05-14 17:45:05 +02:00
committed by Simon.Emanuelsson
parent 623495a176
commit 0b960200b9
12 changed files with 165 additions and 225 deletions

View File

@@ -163,8 +163,9 @@ export default function BookingWidgetClient({
useEffect(() => {
const observer = new ResizeObserver(
debounce(([entry]) => {
if (entry.contentRect.width > 1366) {
closeMobileSearch()
if (entry.contentRect.width > 768) {
setIsOpen(false)
document.body.style.removeProperty("overflow-y")
}
})
)