-
-
Notifications
You must be signed in to change notification settings - Fork 478
add creatable option #167
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
add creatable option #167
Conversation
what's your use case ? why not just use tags? |
@paranoidjk And |
没看懂你的需求,如果 |
就是自定义选项,在搜索的时候如果没有匹配的选项,就新建一个。
http://jedwatson.github.io/react-select/ 就像这里的 |
@yesmeck 这不是自定义 |
可以在 |
|
@yesmeck 那我可以在 |
@paranoidjk OK, 理解。我就是有这个自定义选项的想法,你们看有没有需要吧 |
|
@yesmeck 哦。。是的。 |
相当于单选要实现自定义输入选项,怎么感觉更像 combobox 的行为。 |
@afc163 |
combobox 允许用户任意输入,和 creatable 本质上是一样的。 |
添加 creatable 选项,以实现在非
tags
状态下也能自定义 option 的功能。如果这是可接受的,我会继续补充测试