Skip to content

No interaction possible after opening a modal #3

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

Closed
aakashjain opened this issue Aug 24, 2017 · 2 comments
Closed

No interaction possible after opening a modal #3

aakashjain opened this issue Aug 24, 2017 · 2 comments

Comments

@aakashjain
Copy link

aakashjain commented Aug 24, 2017

It is no longer possible to click anything on the page once a modal is opened. You can only dismiss it by pressing Escape. This seems to be the case with all current versions of CoreUI, not just Angular. Even the documentation page for modals has this problem. Click the "Launch demo modal" button on the above page and try to click anything.

The issue is with this recent addition to the theme's core/_temp.scss:

.modal-open .modal {
  display: block;
}

Not sure why this was even added, but this causes all modals defined on the page to have display: block; when any one modal is open. This means only the last modal defined on the page would be interactive.

Temporary workaround - add the following to your _custom.css:

// Fix for error in CoreUI
.modal-open {
  .modal {
    display: none !important;
  }
  .modal.show {
    display: block !important;
  }
}
@mrholek
Copy link
Member

mrholek commented Sep 12, 2017

We will fix it next release

@mrholek
Copy link
Member

mrholek commented Sep 28, 2017

Fixed in latest version

@mrholek mrholek closed this as completed Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants