Skip to content

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

Description

@tinyhealer

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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