Skip to content

[pickers] The date picker shouldn't steal the focus when closing #13332

@oliviertassinari

Description

@oliviertassinari

Steps to reproduce

Link to live example: (required)

Steps:

  1. Open https://mui.com/x/react-date-pickers/#overview
  2. And voila:
Screen.Recording.2024-06-01.at.20.44.06.mov

Current behavior

The focus is moved back to the button that was clicked to open the popup.

Expected behavior

The focus stays on the new target

Context

I think that https://ui.shadcn.com/docs/components/date-picker behaves correctly for comparison.

Your environment

@mui/x-pickers v7.6.1

Search keywords: -

Metadata

Metadata

Assignees

Labels

scope: pickersChanges related to the date/time pickers.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions