Skip to content

Closing Dialog on router navigation #3171

@salarenko

Description

@salarenko

Issue type

I'm submitting a

  • bug report
  • feature request

Issue description

Current behavior:

  • Open dialog
  • Navigate programmatically to another page
  • Dialog remains opened

Expected behavior:

  • Possibility to configure dialog to close on navigation
  • Dialog closes after navigation

Other information:

Currently it is possible to achieve desired behaviour by handling each dialog separately or extending Nebular code, but lack of this crucial functionality adds non obvious work for the developers.

Furthermore this issue is not only a "UI problem", as when application navigates to the page which is not embedded in nb-overlay, dialog is removed from the DOM, but references are still active causing memory leaks.

Angular, Nebular
Angular v.15
Nebular v.10

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