Skip to content

[pickers] Picker doesn't open when clicking on label position (& mouse up vs. mouse down) #9386

Closed
mui/material-ui
#38072
@cherniavskii

Description

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/sweet-voice-6g6cyk?file=/demo.tsx

Steps:

  1. Click on the text field in the area between the placeholder and the top border

Current behavior 😯

Depending on the click position, the picker might not open:

date-range-picker-click.mov

Expected behavior 🤔

The picker should open regardless of the click position

Context 🔦

I think it only happens when clicking over the hidden label:

Interestingly, I can reproduce the issue in Chrome and Safari, but not in Firefox.


Also, I checked if the Autocomplete component suffers from the same issue, but it doesn't: https://mui.com/material-ui/react-autocomplete/#combo-box

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Order ID or Support key 💳 (optional)

No response

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: pickersThis is the name of the generic UI component, not the React module!regressionA bug, but worse

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions