Skip to content

FormDialog: DOM node not disposed on modal hide #781

@thinkh

Description

@thinkh

Environment

  • Release number or git hash: cdac1c1
  • Browser: Chrome 105
  • Deployed / Local: Both

Steps to reproduce the bug

  1. Open https://ordino-daily.caleydoapp.org/app/
  2. Open a list of cell lines
  3. Add a "Gene Score (Single)" dialog
  4. Close dialog with close button

Observed Behavior

Check Elements in Chrome Dev tools.

grafik

The element is still there even though the dialog was closed.

grafik

Expected Behavior

Modal DOM elements should be removed when the modal dialog closes.

Context

The modal should be disposed in the dialog's destroy() method:

destroy() {
if (--Dialog.openDialogs > 0) {
$('body').addClass('modal-open');
}
return this.bsModal.dispose();
}

See also the Bootstrap Modal documentation.


Thanks for taking the time to fill out this bug report 🤗
Make sure there aren't any open/closed issues for this topic 😃

Metadata

Metadata

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions