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

DatePicker cannot be used in modals or drawers #211

Closed
my-name-was-already-taken opened this issue Aug 18, 2021 · 7 comments
Closed

DatePicker cannot be used in modals or drawers #211

my-name-was-already-taken opened this issue Aug 18, 2021 · 7 comments

Comments

@my-name-was-already-taken

The DatePicker component from @mantine/dates (version 2.3.0) does not open the actual date picker box when used inside of a Modal or Drawer component. Tested in Safari 14 and Chrome 92 on Mac. This is likely due to the component being rendered behind the Drawer / Modal.

https://codesandbox.io/s/datepicker-does-not-open-wcqp9?file=/src/App.js

@rtivital
Copy link
Member

Thanks for reporting, this will be fixed in next patch

@prawee
Copy link

prawee commented Aug 19, 2021

same me

@rtivital
Copy link
Member

Fixed in 2.3.1

@rtivital
Copy link
Member

Specify zIndex prop to use DatePicker within Modal:

<DatePicker zIndex={1000} />

@Manitej66
Copy link

Same issue for DateTimePicker

@omair-bhatti
Copy link

Specify zIndex prop to use DatePicker within Modal:

<DatePicker zIndex={1000} />

not working

@MrWarzo
Copy link

MrWarzo commented Jun 11, 2024

Same problem with MonthPickerInput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants