Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormDialog: DOM node not disposed on modal hide #781

Open
thinkh opened this issue Sep 12, 2022 · 0 comments
Open

FormDialog: DOM node not disposed on modal hide #781

thinkh opened this issue Sep 12, 2022 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@thinkh
Copy link
Member

thinkh commented Sep 12, 2022

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 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants