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

move search box into popup #303

Open
zombieJ opened this issue May 23, 2018 · 2 comments
Open

move search box into popup #303

zombieJ opened this issue May 23, 2018 · 2 comments

Comments

@zombieJ
Copy link
Member

zombieJ commented May 23, 2018

Current design is little confuse user for diff the select with combobox.
It's better to move the search box into popup.

ref: ant-design/ant-design#9972 (comment)

@chen-jingjie
Copy link

我也有这样的需求,如果我想基于 select 组件封装一个 search 使其能够使用 select 的所有api,我应该怎么做?
能不能给 rc-select 提一个自定义搜索框的功能?

<Search
    defaultValue="lucy"
    style={{ width: 120 }}
    onChange={handleChange}
>
    <Option value="jack">Jack</Option>
    <Option value="lucy">Lucy</Option>
    <Option value="disabled" disabled>
      Disabled
    </Option>
    <Option value="Yiminghe">yiminghe</Option>
</Search>

@chen-jingjie
Copy link

如果可以隐藏搜索框,那么我便可以通过 dropdownRendersearchValue 来实现我的需求了。

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

No branches or pull requests

2 participants