Skip to content

KModal doesn't clean up entirelyΒ #2893

@johncowen

Description

@johncowen

What

If you remove a visible KModal from your view programmatically (i.e. unmount it), a k-modal-overflow-hidden class remains on the root/body node preventing any further scrolling by the user.

Repro

Given two different routes, one with a modal and one without.

  • Navigate to the view without the modal
  • Then navigate to the view with the modal.
  • Open the modal, and do not close it
  • Use your browsers back button to navigate back to the view with no modal
  • Verify k-modal-overflow-hidden remains on the root body element, and you can no longer scroll the page.
Image

Let me know if you need any more info πŸ‘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions