diff --git a/src/compile/nodes/Action.ts b/src/compile/nodes/Action.ts index 80d8f215c5..761738ac79 100644 --- a/src/compile/nodes/Action.ts +++ b/src/compile/nodes/Action.ts @@ -14,6 +14,7 @@ export default class Action extends Node { component.warn_if_undefined(info, scope); this.name = info.name; + component.qualify(info.name); this.expression = info.expression ? new Expression(component, this, scope, info.expression) diff --git a/src/compile/nodes/Animation.ts b/src/compile/nodes/Animation.ts index faf964b06c..68ebfd3828 100644 --- a/src/compile/nodes/Animation.ts +++ b/src/compile/nodes/Animation.ts @@ -13,6 +13,7 @@ export default class Animation extends Node { component.warn_if_undefined(info, scope); this.name = info.name; + component.qualify(info.name); if (parent.animation) { component.error(this, { diff --git a/src/compile/nodes/Transition.ts b/src/compile/nodes/Transition.ts index a0e42d939e..6cb39b997f 100644 --- a/src/compile/nodes/Transition.ts +++ b/src/compile/nodes/Transition.ts @@ -15,6 +15,8 @@ export default class Transition extends Node { component.warn_if_undefined(info, scope); this.name = info.name; + component.qualify(info.name); + this.directive = info.intro && info.outro ? 'transition' : info.intro ? 'in' : 'out'; this.is_local = info.modifiers.includes('local');