Skip to content

Commit bab3b6b

Browse files
committed
Fix change type of Show optional parameters button
To avoid submitting form test api
1 parent 6a22bb7 commit bab3b6b

File tree

1 file changed

+1
-0
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions

1 file changed

+1
-0
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ function ParamOptions() {
8080
{optionalParams.length > 0 && (
8181
<>
8282
<button
83+
type="button"
8384
className="openapi-explorer__show-more-btn"
8485
onClick={() => setShowOptional((prev) => !prev)}
8586
>

0 commit comments

Comments
 (0)