Skip to content

The select component is in uncontrolled mode. After selecting the value, modify the options, and the label of the value does not follow the modification #45734

Open
react-component/select
#1007
@ouzhou

Description

@ouzhou

Reproduction link

Edit on CodeSandbox

Steps to reproduce

step1: choose any option

step2: click change language button

step3: click select to see options

What is expected?

  <p>
    I hope the selected value should automatically change the language, but
    currently only the option has changed the language
  </p>

What is actually happening?

  <p>
    I hope the selected value should automatically change the language, but
    currently only the option has changed the language
  </p>
Environment Info
antd 5.11.0
React 18.2
System macos
Browser chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Inactive🐛 BugAnt Design Team had proved that this is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions