Thanks to visit codestin.com
Credit goes to github.com

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.

ngAnimate leaves elements in DOM for a strange amount of time #6748

Closed
@kamilkp

Description

@kamilkp

Example fiddle here: http://jsfiddle.net/Ttj24/2/
Try pressing enter several times (or any other keyboard key) whilst having focus on the input. On each keydown I clear the ngRepeat array, and append two elements to it.

After you run the fiddle, every keydown on the aforementioned input adds two new ngRepeat elements. After about 6 seconds if I hit another (e.g.) enter key in that input all of the elements except the first two disappear (after 0.27s which is related to #6747). After that every enter adds two elements and removes as expected.

If you change the transition duration on .anim to e.g. 0.5s like this (and then rerun the fiddle):

.anim.ng-enter{
    transition: all 0.5s ease;
}

the 6 seconds I wrote becomes about 3 minutes or more.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions