Skip to content
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

fix(Combobox): add event propagation to mouse down #9402

Merged
6 changes: 4 additions & 2 deletions packages/react/src/components/ComboBox/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ const ComboBox = React.forwardRef((props, ref) => {
// stop the event from propagating to prevent this. This allows the
// toggleMenu behavior for the toggleButton to correctly open and
// close the menu.
onMouseUp(event) {
event.stopPropagation();
onMouseUp() {
sstrubberg marked this conversation as resolved.
Show resolved Hide resolved
if (textInput?.current) {
textInput.current.focus();
}
},
});
const inputProps = getInputProps({
Expand Down