Skip to content

Commit

Permalink
fixed binding of origin not using prop value
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Sep 4, 2017
1 parent 561e87c commit d9b159a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/helpers.js
Expand Up @@ -33,8 +33,8 @@ export function createSimpleTransition (name, origin = 'top center 0', mode) {
if (mode) context.data.props.mode = mode

context.data.on.beforeEnter = el => {
el.style.transformOrigin = origin
el.style.webkitTransformOrigin = origin
el.style.transformOrigin = context.props.origin
el.style.webkitTransformOrigin = context.props.origin
}

return h('transition', context.data, context.children)
Expand Down

0 comments on commit d9b159a

Please sign in to comment.