Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,11 @@ onBeforeUnmount(() => {
// so anything after an `await` runs as a detached microtask.
// Note: do NOT null mapsApi here β€” children unmount AFTER onBeforeUnmount
// and need mapsApi.value for clearInstanceListeners in their cleanup.
// Note: do NOT remove map DOM here β€” during page transitions the leave
// animation is still playing, and tearing out the iframe leaves blank
// space. Vue removes the parent element on actual unmount.
map.value?.unbindAll()
map.value = undefined
mapEl.value?.firstChild?.remove()
libraries.clear()
queryToLatLngCache.clear()
})
Expand Down
Loading