From df317ec3840b4baad09cbe047a0174b1077a6406 Mon Sep 17 00:00:00 2001 From: ccbrown Date: Sun, 13 Nov 2022 11:56:38 -0500 Subject: [PATCH] changeset and formatting --- .changeset/loud-guests-drive.md | 5 +++++ .../graphiql-react/src/explorer/components/doc-explorer.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/loud-guests-drive.md diff --git a/.changeset/loud-guests-drive.md b/.changeset/loud-guests-drive.md new file mode 100644 index 00000000000..cf9c967c186 --- /dev/null +++ b/.changeset/loud-guests-drive.md @@ -0,0 +1,5 @@ +--- +'@graphiql/react': patch +--- + +Fix: prevent default event for graphiql-doc-explorer-back link diff --git a/packages/graphiql-react/src/explorer/components/doc-explorer.tsx b/packages/graphiql-react/src/explorer/components/doc-explorer.tsx index e291ec88a70..026e7ff5ae7 100644 --- a/packages/graphiql-react/src/explorer/components/doc-explorer.tsx +++ b/packages/graphiql-react/src/explorer/components/doc-explorer.tsx @@ -70,8 +70,8 @@ export function DocExplorer() { href="#" className="graphiql-doc-explorer-back" onClick={event => { - event.preventDefault(); - pop(); + event.preventDefault(); + pop(); }} aria-label={`Go back to ${prevName}`} >