Dialogs and menus leave a lot of clutter in the DOM #121
Labels
No labels
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#121
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every dialog that's ever opened stays in the DOM. Reopening it adds another one. Also, opening a dialog or menu adds a layer to the DOM.
For most dialogs, a solution would be to change the idiom from
pandora.$ui.placesDialog = pandora.ui.placesDialog().open();
to
(pandora.$ui.placesDialog || (pandora.$ui.placesDialog = pandora.ui.placesDialog())).open();
This would reopen the dialog in the exact same state.
This won't work for the account dialog, which has to load in a specific state.
Layers have been fixed
The "removeOnClose" option takes care of this.