Skip to content

Clicking on anything non-focusable in the dialog focuses the dialog #28404

@ling1726

Description

@ling1726

This is especially noticeable when there are scrollable containers inside the dialog. https://codesandbox.io/s/sad-sanne-77x373?file=/example.tsx

In the gif you can see that the input is blurred once the scrollbar is clicked

combobox blur

By default the mousedown event will propagate and focus a focusable parent (i.e. tabindex >= -1) if available. This can be detrimental when users want to have focus/blur related behaviour within the dialog because clicking on things like scrollbars should not blur a component like a combobox

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions