Skip to content

Selected servers React Warning: <select> and <option> #6372

@tim-lai

Description

@tim-lai

Q&A (please complete the following information)

  • OS: [e.g. macOS]
  • Browser: [e.g. chrome, safari]
  • Version: [e.g. 22]
  • Method of installation: [e.g. npm, dist assets]
  • Swagger-UI version: [e.g. 3.10.0]
  • Swagger/OpenAPI version: [e.g. Swagger 2.0, OpenAPI 3.0]

Content & configuration

use petstore api definition with multiple servers, e.g.

servers:
  - url: /v3
  - url: /v-test

Describe the bug you're encountering

Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.

To reproduce...

Steps to reproduce the behavior:

  1. install latest that includes the PR Fix 6351: Server select usable via oas3Actions #6358 (as of this writing, this is not yet released)
  2. 'npm run dev'
  3. See error

Expected behavior

No console errors or React warnings

Screenshots

Additional context or thoughts

introduced in by PR #6358 , commit 5123b47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions