Aidurber / react-picky

Yet another React multiselect. With checkbox support instead of tags.
MIT License
79 stars 35 forks source link

Picky is focused twice when navigating using tab button. #221

Closed czeslaaw closed 4 years ago

czeslaaw commented 4 years ago

Version

5.3.0

Here's what went wrong:

When navigating using tab focus is set twice on Picky: first on the div wrapper and then on the button. Likely tabindex should be on the button and not on the wrapper.

Example

(https://codesandbox.io/s/6o6y0)

Just use tab to navigate demo above.

Aidurber commented 4 years ago

@czeslaaw Thanks for the report and the solution to it!