summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/components/Share.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx
index e1981100e..ff838dabe 100644
--- a/packages/web/src/components/Share.tsx
+++ b/packages/web/src/components/Share.tsx
@@ -957,7 +957,12 @@ export default function Share(props: {
onMount(() => {
const hash = window.location.hash.slice(1)
- if (hash !== "" && hash === anchor()) {
+ // Wait till all parts are loaded
+ if (
+ hash !== ""
+ && msg.parts.length === partIndex() + 1
+ && data().messages.length === msgIndex() + 1
+ ) {
scrollToAnchor(hash)
}
})