Skip to content

Commit 13dfde0

Browse files
authored
Add pointer events styling to Execute button for invalid requests (#331)
1 parent 8dab024 commit 13dfde0

File tree

1 file changed

+1
-0
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/Execute

1 file changed

+1
-0
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/Execute/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ function Execute({ postman, proxy }: Props) {
112112
<button
113113
className="button button--sm button--secondary"
114114
disabled={!isValidRequest}
115+
style={!isValidRequest ? { pointerEvents: "all" } : {}}
115116
onClick={async () => {
116117
dispatch(setResponse("Fetching..."));
117118
try {

0 commit comments

Comments
 (0)