We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Why? Why did you add stopPropagation() and preventDefault() here?
stopPropagation()
preventDefault()
https://github.com/fraserxu/react-dropdown/blob/747af52959bc4a4ee8a7d8c9779b498a07123bee/index.js#L52-L53
This prevents the div with tabindex to be focused.
The text was updated successfully, but these errors were encountered:
Found a workaround:
const dropdown = useRef(null); <Dropdown ref={dropdown} onFocus={() => dropdown.current.focus()} />
But why.
Sorry, something went wrong.
Hi @Vanuan I couldn't make your workaround work. Does it make the component focusable via keyboard as well? or only through click?
It seems the workaround works only for the older version of react-dropdown
+1, this how has this not been fixed lol. Stopped using the package due to this
No branches or pull requests
Why? Why did you add
stopPropagation()
andpreventDefault()
here?This prevents the div with tabindex to be focused.
The text was updated successfully, but these errors were encountered: