Skip to content
This repository has been archived by the owner on Aug 11, 2019. It is now read-only.

transitions not working when a custom component include any transition. #4

Closed
yundongbot opened this issue Aug 26, 2017 · 3 comments
Closed

Comments

@yundongbot
Copy link

the example:

https://svelte.technology/repl?version=1.31.0&gist=e9dedb05fee495356046c11316a3bceb

@Rich-Harris
Copy link
Member

Transitions only work on DOM nodes. You would need to wrap the component, like so. I've opened an issue on Svelte itself so that we can print a helpful error if a transition is applied to a component.

@Rich-Harris
Copy link
Member

As of Svelte 1.34 this results in a compile error:

screen shot 2017-08-29 at 11 28 39 am

@yundongbot
Copy link
Author

👍🏼

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

No branches or pull requests

2 participants