Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngAnimateSwap is not compatible with ngIf #16616

Closed
@bersLucas

Description

@bersLucas

I'm submitting a ...

  • bug report
  • feature request
  • other

Current behavior:

ngAnimateSwap registers a comment of the element, not the element itself, so if an element contains the ng-if attribute, ng-animate-swap will not work.

Expected / new behavior:

Having a conditional element also be animated if it's visible.

Minimal reproduction of the problem with instructions:

  1. Have an element with both ng-animate-swap and ng-if
  2. The element will always be invisible, as it swaps the comments.

https://codepen.io/anon/pen/LrgBwY

AngularJS version: 1.7.2

Browser: [all]

(tested on FF 62, OSX High Seirra )

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions