[BUG]? Multiple dialogs not closed on panel refresh

Not sure if it’s by design or a bug actually :slight_smile:

If I open a dialog with uxpShowModal() and from it I open another one (and another one :smiley: I know it’s a bad practice, but I have a use case for this and couldn’t think of a better way to implement what I want), after panel is refreshed, only last opened (top-most) dialog is closed. Other dialogs get cleared of their contents, but remain open and prevent interaction with Ps