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

Added zIndex prop to DatePickerBase #210

Merged

Conversation

leorotzler
Copy link
Contributor

@leorotzler leorotzler commented Aug 18, 2021

Problem

If the DatePicker is used inside a Modal, the DatePicker popover appears behind the Modal, since the zIndex prop of the Popper Component which is used for the DatePicker popover is set to 3.

Solution

Added zIndex property to DatePickerBase which allows you to modify the z-index attribute of the Popper component.
The default value is still set to 3.

I don't know if "zIndex" is the correct property name in this case, since it's only for the Popper component and not the DatePicker component itself.

@rtivital rtivital merged commit 3b3e789 into mantinedev:master Aug 19, 2021
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

Successfully merging this pull request may close these issues.

2 participants