Closed KaimingTao closed 2 years ago
This issue is caused by malformed markdown text stored in hivdb/chiro-cms:
Markdown text:
CP
Studies
#
After parsing, the HTML looks like:
CP
Studies
<h1 id=""></h1>
The previous version of <HeadingTag>
from sierra-frontend checked if current hash string matches the id of any heading tags. The hash string of https://covdb.stanford.edu/page/susceptibility-data/ is empty (""
), it matches the malformed <h1>
tag created by Markdown. The component then scroll the screen to the <h1>
tag.
An additional condition is added to <HeadingTag>
to skip scrolling when hash string is empty (hivdb/sierra-frontend@c0b248c).
A fix commit of hivdb/chiro-cms will be submitted soon.
The page didn't scroll only until the second access was due to the another closely related bug fixed by hivdb/sierra-frontend@04c55cc. It didn't use Markdown to render column labels until the page was accessed again.
https://covdb.stanford.edu/page/susceptibility-data/