Skip to content

Commit

Permalink
fix: use static dom
Browse files Browse the repository at this point in the history
  • Loading branch information
tmg0 committed Oct 11, 2024
1 parent 925d74f commit edd0701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/composables/use-hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function useHero(target: MaybeRef<HTMLElement | SVGElement | undefined>,
const initial = { ...unref(previous), x: _x, y: _y, scaleX: scale.x, scaleY: scale.y, ...size }
const enter = { ...style.value, x: 0, y: 0, scaleX: 1, scaleY: 1, ...size, transition: _transition }

motionInstance = useMotion(target, {
motionInstance = useMotion(unref(target), {
initial: omit(initial, props.value.ignore as any),
enter: omit(enter, props.value.ignore as any),
})
Expand Down

0 comments on commit edd0701

Please sign in to comment.