Skip to content
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

The first one is not selected by default in controlled mode #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qiuxchao
Copy link

@qiuxchao qiuxchao commented May 31, 2023

When value is passed in from the outside, even if it is undefined, it should take the value of value instead of taking the first configuration item by default, see the following example:

https://stackblitz.com/edit/react-7an8od?file=demo.tsx

In the Form of antd, this behavior makes the user mistakenly think that the first one has been selected for him, but other components in Form do not have this behavior.

@qiuxchao qiuxchao marked this pull request as ready for review May 31, 2023 02:06
@qiuxchao qiuxchao changed the title 受控模式下不默认选中第一个 The first one is not selected by default in controlled mode Jun 2, 2023
@mashirozx
Copy link

ping @vagusX @zombieJ

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

Successfully merging this pull request may close these issues.

3 participants