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 Feature to auto focus/open dropdown & Select options #6873
Comments
trace #3790 |
Ant uses rc-select underneath. You can use |
@MiroslavPetrik Thanks for pointing this out. I'm curious why this I'm not sure if this is already documented somewhere in the Ant documentation, but I think at the very least an indication that rc-select is the component used under the hood (with a link to rc-select docs) would be useful. Thoughts? |
I think this should definitely be added to the docs. |
I wanted to use this feature to enable typing into a select field when moving between fields in a for with Tab button.In fact worked but using mouse click instead of Tab started not working properly(hardly you can find a space in select box that enables you type otherwise you can not type into the field). |
|
…errors when used through antd Select component The usage of this prop was discussed over ant-design#6873
…errors when used through antd Select component The usage of this prop was discussed over #6873
In the meantime, if anyone using react + typescript wants to use const rcProps = {
showAction: 'focus'
}; and then: <Select
{...rcProps}
// your other declared props
> |
If I try to use the `showAction the behavior gets really inconsistent. It sometimes opens when I click the arrow and sometimes it flashes and then closes immediately |
Very interesting! I like this feature, however, I don't find it documented anywhere. Isn't it supported? |
What problem does this feature solve?
Most of the time we need to display the dropdown/Select option to be auto focused. But there is no option to achieve that.
https://github.com/JedWatson/react-select
Similar to this one, see autofocus & openOnFocus property.
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: