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

Nested transition clobbers parent update #2335

Closed
halfnelson opened this issue Mar 29, 2019 · 1 comment
Closed

Nested transition clobbers parent update #2335

halfnelson opened this issue Mar 29, 2019 · 1 comment
Labels

Comments

@halfnelson
Copy link
Contributor

https://v3.svelte.technology/repl?version=3.0.0-beta.20&gist=6d537f9c99a5f089b6dd415412173c39

What is supposed to happen:
When clicking on delete, the delete button should animate out, then the item should be removed from the list

What happens:
When you click on delete, the button animates out, but the item stays.

Investigation:
Upon a deeper investigation using debugger, it seems that it is due to two nested calls to group_outros. The first call sets up the removal of the item from the list to happen after all outros are complete. The second call is due to the if statement in the delete button component, this replaces the content of the outros variable and thus the outro_complete callback to remove the item from the list is never fired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants