aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/shared
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-03 12:36:08 +0800
committerFabio Berger <me@fabioberger.com>2018-03-03 12:36:08 +0800
commit0afe45b3a830bfefc4f9b51823891b99be5261fa (patch)
treed79f136cf5df69c3c85557bcd11616ca74ab505b /packages/website/ts/pages/shared
parentf9a37168b034dd20868d1ffe1d2934db6effd39a (diff)
downloaddexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.tar
dexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.tar.gz
dexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.tar.bz2
dexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.tar.lz
dexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.tar.xz
dexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.tar.zst
dexon-sol-tools-0afe45b3a830bfefc4f9b51823891b99be5261fa.zip
Hash hash instead of prefixedHash to scrollToHash function
Diffstat (limited to 'packages/website/ts/pages/shared')
-rw-r--r--packages/website/ts/pages/shared/markdown_link_block.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/website/ts/pages/shared/markdown_link_block.tsx b/packages/website/ts/pages/shared/markdown_link_block.tsx
index 45bb41478..ed78e4e53 100644
--- a/packages/website/ts/pages/shared/markdown_link_block.tsx
+++ b/packages/website/ts/pages/shared/markdown_link_block.tsx
@@ -39,8 +39,7 @@ export class MarkdownLinkBlock extends React.Component<MarkdownLinkBlockProps, M
}
private _onHashUrlClick(href: string) {
const hash = href.split('#')[1];
- const hashWithPrefix = `#${hash}`;
- utils.scrollToHash(hashWithPrefix, configs.SCROLL_CONTAINER_ID);
+ utils.scrollToHash(hash, configs.SCROLL_CONTAINER_ID);
utils.setUrlHash(hash);
}
}