diff --git a/.changeset/poor-vans-kiss.md b/.changeset/poor-vans-kiss.md new file mode 100644 index 00000000000..e5d7a7e72e0 --- /dev/null +++ b/.changeset/poor-vans-kiss.md @@ -0,0 +1,6 @@ +--- +'graphiql': patch +'@graphiql/react': patch +--- + +Fix stop execution button showing a dropdown diff --git a/packages/graphiql-react/src/toolbar/execute.tsx b/packages/graphiql-react/src/toolbar/execute.tsx index 20678c1eab5..240fdd18a2a 100644 --- a/packages/graphiql-react/src/toolbar/execute.tsx +++ b/packages/graphiql-react/src/toolbar/execute.tsx @@ -26,7 +26,7 @@ export function ExecuteButton() { 'aria-label': label, }; - return hasOptions ? ( + return hasOptions && !isFetching ? (