mirror of https://github.com/sveltejs/svelte
error if component has transition (fixes #791)
parent
87ef5ffefd
commit
cb92f3028e
@ -0,0 +1,8 @@
|
||||
[{
|
||||
"message": "Transitions can only be applied to DOM elements, not components",
|
||||
"loc": {
|
||||
"line": 1,
|
||||
"column": 8
|
||||
},
|
||||
"pos": 8
|
||||
}]
|
@ -0,0 +1,15 @@
|
||||
<Widget in:foo/>
|
||||
|
||||
<script>
|
||||
import Widget from './Widget.html';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Widget
|
||||
},
|
||||
|
||||
transitions: {
|
||||
foo() {}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue