bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

$dialog service not adding dialogOpenClass to body

Open cubicleWar opened this issue 13 years ago • 2 comments

Opening a dialog or a modal does not add the dialogOpenClass (default = 'modal-open') to the body element.

This is required to stop background scrolling while the modal is open.

cubicleWar avatar Aug 10 '13 04:08 cubicleWar

Ran into this myself, seems to have been removed between 0.3 and 0.4 releases.

Can see the old code sitting in the old release if you want to manually patch it in like I did.

https://github.com/angular-ui/bootstrap/blob/0.3.0/src/dialog/dialog.js

Feckinotter avatar Aug 12 '13 14:08 Feckinotter

Thanks @Feckinotter I will manually patch for now and hopefully it gets patched in the master soon.

I suspect it is because the bootstrap modal dropped appending .modal-open to the body in 2.2.0. I believe it has been added back in 3.0.0 RC1 though.

cubicleWar avatar Aug 13 '13 12:08 cubicleWar