Closed martimalek closed 4 months ago
I'd try attaching the datepicker popup to the modal, not to the body. In that case, the elevation of the modal will be used and we can rely on it. I'm not confident it will work, but I don't see the reason why it shouldn't
I'd try attaching the datepicker popup to the modal, not to the body. In that case, the elevation of the modal will be used and we can rely on it. I'm not confident it will work, but I don't see the reason why it shouldn't
@nlopin how can we know to which element to attach it to? Do you mean having a new prop (e.g. portalContainer
)?
I'd try attaching the datepicker popup to the modal, not to the body. In that case, the elevation of the modal will be used and we can rely on it. I'm not confident it will work, but I don't see the reason why it shouldn't
@nlopin how can we know to which element to attach it to? Do you mean having a new prop (e.g.
portalContainer
)?
yep, that's the issue. Let's merge this solution and see whether the z-index war will start or not 😂
:tada: This PR is included in version 2.1.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What
Media
Before (Datepicker underneath Modal)
After (Datepicker on top of Modal)
Why
To offer a consistent experience on the Datepicker and Input components
How
InputProps
inDatepickerSingleInputProps
since props are being sent to triggerInput
InnerInput
with "bottom-lined" variant to the actual htmlinput
instead of the the wrapperdiv
Closes #421