Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 46d6cf9

Browse files
authored
fix: set correct loading state in iframeView (#223)
1 parent 4e47f09 commit 46d6cf9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/client/components/IframeView.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ onMounted(() => {
1818
if (iframeCacheMap.get(key.value)) {
1919
iframeEl.value = iframeCacheMap.get(key.value)!
2020
iframeEl.value.style.visibility = 'visible'
21+
iframeLoaded.value = true
2122
}
2223
else {
2324
iframeEl.value = document.createElement('iframe')
@@ -45,10 +46,8 @@ watchEffect(updateIframeBox)
4546
watchEffect(syncColorMode)
4647
4748
onUnmounted(() => {
48-
if (iframeEl.value) {
49+
if (iframeEl.value)
4950
iframeEl.value.style.visibility = 'hidden'
50-
iframeLoaded.value = false
51-
}
5251
})
5352
5453
function syncColorMode() {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy