-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Problem with carousel after hiding and showing #1513
Comments
This is due to the transition waiting for a transitionend event which never fires because the element is hidden. The next never fires the CarouselController's select method because there's always a currentTransition that never ends (see these lines). |
I think your right @chrisirhc. ngAnimate is probably the best way to fix this issue. For now the best way to conditionally show and hide the carousel is to use ngIf or a switch. although as @caitp pointed out here angular/angular.js#5620 removing these carousels with ng-if and switch can mess up desired caching. |
Fixes angular-ui#1350 Fixes angular-ui#1513 Fixes angular-ui#1185 Fixes angular-ui#2062 Fixes angular-ui#2235
Fixes angular-ui#1350 Fixes angular-ui#1513 Fixes angular-ui#1185 Fixes angular-ui#2062 Fixes angular-ui#2235 Closes angular-ui#2067
Fixes angular-ui#1350 Fixes angular-ui#1513 Fixes angular-ui#1185 Fixes angular-ui#2062 Fixes angular-ui#2235 Closes angular-ui#2067
This was reported Jan... I didn't see this issue and created another one: #2752 with plunker. It would be great to create at least a patch for this.
|
The only way I managed to make this work was simulating a click on carousel-indicators:
|
Fixes angular-ui#1350 Fixes angular-ui#1513 Fixes angular-ui#1185 Fixes angular-ui#2062 Fixes angular-ui#2235 Closes angular-ui#2067
Fixes angular-ui#1350 Fixes angular-ui#1513 Fixes angular-ui#1185 Fixes angular-ui#2062 Fixes angular-ui#2235 Closes angular-ui#2067
Hi there,
Whenever I hide the carousel, wait a couple of seconds and show it, the left and right arrows no longer work and the carousel doesn't auto cycle.
For some reason I can't save a plunker but here's the html:
And js:
The text was updated successfully, but these errors were encountered: