Skip to content

Commit

Permalink
fix: prevent default event for graphiql-doc-explorer-back link (#2905)
Browse files Browse the repository at this point in the history
* fix: prevent default event for graphiql-doc-explorer-back link

* changeset and formatting
  • Loading branch information
ccbrown authored Nov 25, 2022
1 parent f6cae4e commit 0851d5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/loud-guests-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphiql/react': patch
---

Fix: prevent default event for graphiql-doc-explorer-back link
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 0851d5f

Please sign in to comment.