Skip to content

Commit c943a86

Browse files
authored
Merge pull request #1293 from sveltejs/gh-1290
only delete applicable transition animations
2 parents 78f506a + 6860d09 commit c943a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/transitions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export var transitionManager = {
199199
node.style.animation = node.style.animation
200200
.split(', ')
201201
.filter(function(anim) {
202-
return !/__svelte/.test(anim);
202+
return anim.indexOf(name) === -1;
203203
})
204204
.join(', ');
205205
}

0 commit comments

Comments
 (0)