Skip to content
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

bug: ng-enter,ng-leave don't fire when using slides #4868

Closed
danpincu opened this issue Dec 25, 2015 · 1 comment
Closed

bug: ng-enter,ng-leave don't fire when using slides #4868

danpincu opened this issue Dec 25, 2015 · 1 comment
Milestone

Comments

@danpincu
Copy link

Type: bug

Platform: all

After upgrading to 1.2.1 I have a weird problem.
I'm using animate.css in my app to slide a popup in & out. In addition I have a couple of views using slides. When I open the popup from the main view it animates fine, but after moving to one of the slides views the animations are not played (the popup just appears). It also remains like this when going back to the main view.
At first I thought it was something with the new ion-slides directive, but it actually also happens with ion-slide-box.

Here's a codepen to demonstrate:
http://codepen.io/anon/pen/zrKPrE

I also tried adding animations from code - in this case after moving to the slides view again nothing happens and nothing is written to the console.

.animation('.popup', [function() {
return {
enter: function (element, doneFn) {
console.debug("enter");
jQuery(element).fadeIn(1000, doneFn);
},
leave: function(element, doneFn) {
console.debug("leave");
jQuery(element).fadeOut(1000, doneFn);
}
}
}])

@mlynch mlynch added this to the 1.2.2 milestone Dec 30, 2015
@mlynch mlynch closed this as completed in cb7d8a5 Dec 30, 2015
@mlynch
Copy link
Contributor

mlynch commented Dec 30, 2015

Thanks! We were disabling ngAnimate in slides so I removed that for now to assess with the new slider.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants