alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Focus on Search Input when expand dropdown on searchable dropdown #64

Closed amgohan closed 8 years ago

amgohan commented 8 years ago

We want to auto-focus on search input when dropdown is expanded

alsoscotland commented 8 years ago

@amgohan On first expansion of the searchable control the search input field is the first thing that receives focus? Could you give me more info around when it is not focusing like you would expect.

amgohan commented 8 years ago

You are right, in the first expand the input field is the first thing that receives focus.

What we expect, every time we expand after selection, we want that the input be focused, not the selected value

alsoscotland commented 8 years ago

I need to verify that changing that does not break the expected accessibility behavior

amgohan commented 8 years ago

this can be part of the issue #62, if you add an option to clear search and start from scratch for filter with focus on input search every time we expand the dropdown

alsoscotland commented 8 years ago

https://github.com/alsoscotland/react-super-select/pull/68

alsoscotland commented 8 years ago

https://github.com/alsoscotland/react-super-select/tree/v0.5.0