Skip to content

Commit

Permalink
Do not show dropdown for execute button if an operation is currently …
Browse files Browse the repository at this point in the history
…running
  • Loading branch information
simhnna authored and acao committed Nov 10, 2022
1 parent f61a557 commit 8f92648
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/poor-vans-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'graphiql': patch
'@graphiql/react': patch
---

Fix stop execution button showing a dropdown
2 changes: 1 addition & 1 deletion packages/graphiql-react/src/toolbar/execute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function ExecuteButton() {
'aria-label': label,
};

return hasOptions ? (
return hasOptions && !isFetching ? (
<Menu>
<Tooltip label={label}>
<Menu.Button {...buttonProps} />
Expand Down

0 comments on commit 8f92648

Please sign in to comment.