Make sure the page has loaded (including all images) before scrolling to hash

This commit is contained in:
Fabio Berger
2018-03-02 17:02:14 +01:00
parent 0fbb443e4b
commit 52232e98c7

View File

@@ -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);
},
);