Skip to content

Browser scroll disappear when a sub modal is open. #15

@mharocsc

Description

@mharocsc

I have a modal dialog that have enough information to get scroll in browser, but once I open a sub modal, the scroll disappears (which I'm OK with, no problem with that)

The problem is, once I close that sub modal, my scroll does not come back. What I noticed is that the children-open class is not being removed from the backdrop in my root modal dialog, when I close the sub modal, not only is not being removed, a children-open class is added each time I open a sub modal (if I open 10 time the sub modal, 10 times the children-open class is added to the root modal tag.

Any ideas what I'm doing wrong? Or why you guys think this is happening? Tks.

modal dialog
sub modal open
sub modal closed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions