Skip to content

payload lost on Single Page App #4961 #10396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Mathias02 opened this issue Apr 1, 2025 · 0 comments
Open

payload lost on Single Page App #4961 #10396

Mathias02 opened this issue Apr 1, 2025 · 0 comments

Comments

@Mathias02
Copy link

Q&A (please complete the following information)

  • OS: [Linux mint]
  • Browser: [Firefox]
  • Version: [136.0.1]
  • Method of installation: [npm]
  • Swagger-UI version: [3.20.1]
  • Swagger/OpenAPI version: [e.g. Swagger 2.0, OpenAPI 3.0.4]

Content & configuration

  1. I open Swagger UI with a valid OpenAPI 3.0.4 spec.
  2. Select an endpoint that requires a request body.
  3. Enter a request body.
  4. Navigate to another endpoint, then return.
  5. The request body is not lost.

Example Swagger/OpenAPI definition:

# your YAML here

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})
?yourQueryStringConfig

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

The request body should persist even after navigating away and coming back to the endpoint.

Screenshots

Additional context or thoughts

  • No errors appear in the console.
  • updateRequestBody` action seems to fire, but the state does not persist.
  • The issue does not occur in version X.Y.Z (if tested in an older version).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant