JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.57k stars 4.12k forks source link

Tab don't focus next element #5806

Open dexterns88 opened 11 months ago

dexterns88 commented 11 months ago

I have an issue with tabbing when focusing field with a disabled search. When the element is focused with tab and select is opened, when click tab again they lose focus close the menu and leave form, but need to focus next checkbox as he selects when searchable is enabled.

You can check the example on the link

https://codesandbox.io/s/codesandboxer-example-forked-ntxhmx

dexterns88 commented 11 months ago

This issue is related to Firefox browsers.

EamonNerbonne commented 1 week ago

@dexterns88 I'm running into this issue too. I've expanded your example to log what's happening, focus-wise. It seems like the wrapper div is getting focus in firefox, possibly because it has role=listbox? Or perhaps that's a red herring. And indeed, that's not what it does in chrome.

https://codesandbox.io/p/sandbox/codesandboxer-example-forked-qmcwws