diff --git a/src/utils/directive.ts b/src/utils/directive.ts index 93f66e3b..c8e46e08 100644 --- a/src/utils/directive.ts +++ b/src/utils/directive.ts @@ -2,7 +2,7 @@ import { isObject } from '@vueuse/core' import type { Ref, VNode } from 'vue' import type { MotionVariants } from '../types' -const directivePropsKeys = ['initial', 'enter', 'leave', 'visible', 'visible-once', 'hovered', 'tapped', 'focused', 'delay'] +const directivePropsKeys = ['initial', 'enter', 'leave', 'visible', 'visible-once', 'visibleOnce', 'hovered', 'tapped', 'focused', 'delay'] export function resolveVariants(node: VNode>, variantsRef: Ref>) { // This is done to achieve compat with Vue 2 & 3 @@ -62,10 +62,12 @@ export function resolveVariants(node: VNode] = prop + } }) } }