fix(website): fix APITable anchor link (#5947)

This commit is contained in:
Joshua Chen 2021-11-14 23:15:55 +08:00 committed by GitHub
parent c5feac6ba2
commit 1816f135f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ const APITableRow = forwardRef(
const history = useHistory();
return (
<tr
id={entryName}
id={anchor}
tabIndex={0}
ref={history.location.hash === anchor ? ref : undefined}
onClick={() => {