fix(SW-960) close on click outside

This commit is contained in:
Pontus Dreij
2024-11-21 16:30:24 +01:00
parent 8a9cfc5da4
commit 496b0db230
2 changed files with 11 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ export default function HotelCardDialogListing({
const elements = document.querySelectorAll("[data-name]")
setTimeout(() => {
elements.forEach((el) => observerRef.current?.observe(el))
}, 500)
}, 1000)
}
}, [activeCard])