2

Modal is not opening properly. below is the screen shot:screen shot

this is my package.json "dependencies": { "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "": "^5.2.0", "@ng-bootstrap/ng-bootstrap": "^1.0.0", "angular4-slimscroll": "^1.0.5", "bootstrap": "^4.0.0", "core-js": "^2.4.1", "rxjs": "^5.5.6", "zone.js": "^0.8.19" },

have found below things which is causing the issue: for my app when modal is opened there is no classes related to modal in the dom element. check below pic: my example dom

while is demo in ng-bootstrap hosted example, dom element is as below:

dopm from ng-bootstrap modal demo

any help will be appreciated.

1 Answer 1

1

it works for me by applying this css class in style.scss file

.modal-open .modal
{
  opacity: 1;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.