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

Select组件配置autoClearSearchValue为false时导致showSearch配置失效 #47281

Open
tinyhealer opened this issue Feb 1, 2024 · 3 comments · May be fixed by react-component/select#1025
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@tinyhealer
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1.给一个Select组件配置mode="multiple",此时showSearch默认为true,Select组件展开后可筛选。
2.修改showSearch为false,此时Select组件不可筛选。
3.配置autoClearSearchValue={false},此时Select组件又变为可筛选状态,第二步showSearch为false的配置失效。

What is expected?

autoClearSearchValue不影响Select组件筛选功能是否开启。

What is actually happening?

autoClearSearchValue为false会直接开启Select组件的筛选功能。

Environment Info
antd 5.13.2
React 18.0.0
System win10
Browser chrome120.0.6099.225
@zombieJ
Copy link
Member

zombieJ commented Feb 1, 2024

Codesandbox 打不开哈~

@zombieJ zombieJ added 🤔 Need Reproduce We cannot reproduce your problem and removed unconfirmed labels Feb 1, 2024
Copy link
Contributor

github-actions bot commented Feb 1, 2024

Hello @tinyhealer. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @tinyhealer,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?

@tinyhealer
Copy link
Author

Codesandbox 打不开哈~

我这边可以正常打开,https://stackblitz.com/edit/react-snhysg 试试这个能不能打开

@MadCcc MadCcc added 🐛 Bug Ant Design Team had proved that this is a bug. and removed 🤔 Need Reproduce We cannot reproduce your problem labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants