Skip to content

Commit

Permalink
fix: prevent default event for graphiql-doc-explorer-back link
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown committed Nov 13, 2022
1 parent eff4fd6 commit aeca2c5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ export function DocExplorer() {
<a
href="#"
className="graphiql-doc-explorer-back"
onClick={pop}
onClick={event => {
event.preventDefault();
pop();
}}
aria-label={`Go back to ${prevName}`}
>
<ChevronLeftIcon />
Expand Down

0 comments on commit aeca2c5

Please sign in to comment.