You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# [Online Swagger Pet Store](https://petstore.swagger.io)
Swagger-UI configuration options:
SwaggerUI({// nothing extra})
?yourQueryStringConfig
Describe the bug you're encountering
Our Swagger UI React is wrapped under React Hook Form and whenever the Swagger expand spec is clicked (The down arrow) the whole form submits, this is because of missing type attribute in native <button> element. Request you to add type on your buttons like <button type="button" > to avoid any default submission.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
# [Online Swagger Pet Store](https://petstore.swagger.io)
Swagger-UI configuration options:
Describe the bug you're encountering
Our Swagger UI React is wrapped under React Hook Form and whenever the Swagger expand spec is clicked (The down arrow) the whole form submits, this is because of missing type attribute in native
<button>
element. Request you to add type on your buttons like<button type="button" >
to avoid any default submission.This is a sample element currently -
To reproduce...
Steps to reproduce the behavior:
Expected behavior
the tag should be present with attribute so that any Swagger UI under form submission works properly
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: