angular-ui / angular-ui-OLDREPO

DISCONTINUED REPO: This project has been restructured ->
http://angular-ui.github.com/
MIT License
2.2k stars 355 forks source link

bootstrap-transitions seems to break modal directive #129

Closed rosslavery closed 12 years ago

rosslavery commented 12 years ago

I'm not certain of why it's happening, but it seems as though adding bootstrap-transitions.js (required for fading in/out of modals) is incompatible with the directive written for angular-ui.

If both bootstrap-modal and bootstrap-transition are included, the "in" class is never added to the modal element, and thus never shown. The overlay element is added to the DOM, but upon pressing escape, it is only hidden (via opacity), but not removed from the DOM as it should be. This prevents clicking on any page element after that point.

It seems reproducible to me, I can comment in/out the bootstrap-transition file, and it works and then doesn't.

I've tried to narrow it down and it seems like there's an issue with line 56 of http://twitter.github.com/bootstrap/assets/js/bootstrap-modal.js

The callback for backdrop.call doesn't seem to get executed, that's about as far as I can get with my skillset unfortunately.

ajoslin commented 12 years ago

Hi rabhw, thanks. Sorry for the late reply.

I will look at this tonight.

rosslavery commented 12 years ago

Hey Andy,

Sorry to pester, just wondering if you've had a chance to take a look at what's causing this.

ajoslin commented 12 years ago

Never did look.. I'll check now.

rosslavery commented 12 years ago

Thanks a lot Andy, appreciate it.

ajoslin commented 12 years ago

If you copy/paste the pull request into your angular-ui.js for now, it should fix it. Let me know, I tested it on my own and it seems fine now.