fix: make sure ancillaries also listen to invalidate requests
This commit is contained in:
committed by
Simon.Emanuelsson
parent
623495a176
commit
0b960200b9
@@ -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")
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user