aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-03 00:02:14 +0800
committerFabio Berger <me@fabioberger.com>2018-03-03 00:02:14 +0800
commit52232e98c7b2b1d1110821992bf3f86c239dd6e7 (patch)
tree07cdbbc954424de326c7b6f9b14115d15dbfcda5 /packages/website/ts/pages
parent0fbb443e4bb3ee6d522f4a4099aacae1b3da2488 (diff)
downloaddexon-sol-tools-52232e98c7b2b1d1110821992bf3f86c239dd6e7.tar.gz
dexon-sol-tools-52232e98c7b2b1d1110821992bf3f86c239dd6e7.tar.zst
dexon-sol-tools-52232e98c7b2b1d1110821992bf3f86c239dd6e7.zip
Make sure the page has loaded (including all images) before scrolling to hash
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r--packages/website/ts/pages/wiki/wiki.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/pages/wiki/wiki.tsx b/packages/website/ts/pages/wiki/wiki.tsx
index d0cbf0d3e..66fa960d7 100644
--- a/packages/website/ts/pages/wiki/wiki.tsx
+++ b/packages/website/ts/pages/wiki/wiki.tsx
@@ -211,7 +211,8 @@ export class Wiki extends React.Component<WikiProps, WikiState> {
{
articlesBySection,
},
- () => {
+ async () => {
+ await utils.onPageLoadAsync();
utils.scrollToHash(this.props.location.hash, configs.SCROLL_CONTAINER_ID);
},
);