mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Update addons/docs/src/blocks/mdx.tsx
This commit is contained in:
parent
d74daf18e5
commit
a24c2e3b70
@ -95,6 +95,8 @@ export const AnchorMdx: FC<AnchorMdxProps> = (props) => {
|
||||
href={href}
|
||||
onClick={(event: SyntheticEvent) => {
|
||||
event.preventDefault();
|
||||
// use the A element's href, which has been modified for
|
||||
// local paths without a `?path=` query param prefix
|
||||
navigate(event.currentTarget.getAttribute('href'));
|
||||
}}
|
||||
target={target}
|
||||
|
Loading…
x
Reference in New Issue
Block a user