This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
datepicker scroll mask fails when datepicker is inside a modal #8177
Labels
has: Pull Request
A PR has been created to address this issue
P4: minor
Minor issues. May not be fixed without community contributions.
type: bug
DatePicker's have an associated md-scroll-mask, z-index=50, which blocks scrolling of the background while the dp is open. DatePicker's have z-index=100. However, modals have z-index 50 < z < 99. A datepicker inside of a modal will not prevent scrolling in the modal funky stuff happens.
Sample: http://codepen.io/beezus/pen/grjMQV
Here's what I did to make this work for now. I overrode and inherited the dp directive and updated the mask's z-index. I didn't dig deep enough to see how all of these things work to devise a better solution.
The text was updated successfully, but these errors were encountered: