-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Prevent closing the Combobox
component when clicking inside the scrollbar area
#3104
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…ollbar area (#3104) * prevent closing `Combobox` when clicking inside the scrollbar area * update changelog
@RobinMalfait This PR breaks the following scenario: a Combobox with an input field inside. When I now click the input field, the click is now regarded as a ComboboxOption selection instead of just focusing the input field. In 1.7.20 the following code used to work, but starting from 1.7.21 it broke. Removing the enclosing |
This PR ensures that clicking inside the scrollbar area of the
ComboboxOptions
does not close theCombobox
.The main issue (see #3071) is that clicking inside the scrollbar area moves focus into the
TabPanel
which blurs theComboboxInput
and in turn closes theCombobox
.Preventing the default behavior of the
mousedown
event when clicking inside the scrollbar area of theComboboxOptions
prevents the focus from moving to theTabPanel
and keeps theCombobox
open.Fixes: #3071