Skip to content

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

@afc163 afc163 requested a review from vagusX September 26, 2023 01:57
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