Calendar doesn't clean up modality #7170
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
Calendar with ui-touch enabled doesn't always
disableModality
. I noticed this when putting the calendar component in a ngbModal. With the calendar displayed, click outside the modal. You are left with just a dark overlay and can't interact with anything on the page. My suspicion is the ngbModal is destroying the components outright but the calendar doesn't fully clean up after itself.Expected behavior
Calendar should clean up after itself (modality included) when it's destroyed. I suspect all you need to do is call
disableModality
in ngOnDestroy.I have a workaround in my own code and don't have time to pr a fix right now. Workaround is to simply call the Calendar's
disableModality
fn when cleaning up the ngbModal.The text was updated successfully, but these errors were encountered: