mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

Modal backdrop does not display when ngView is applied to the body element #2154

Closed compwright closed 5 years ago

compwright commented 8 years ago

It appears that ngView replaces the body element in the DOM? At any rate, the modal backdrop doesn't show when you have this:

<html>
<body ng-view></body>
</html>

Setting the backdrop and container options have no effect.

It does work if you don't apply ngView to the body element itself. This is my current workaround:

<html>
<body>
  <div ng-view></div>
</body>
</html>

It would be nice to have this fixed since this behavior is an inexplicable gotcha that may not be all that uncommon.

DaleWebb commented 8 years ago

Plunkr please!

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.