Skip to content

Commit

Permalink
fix: prop overriding not working in built version
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 3, 2022
1 parent f4f1f54 commit 5323b70
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -88,6 +88,12 @@ async function mountVariant () {
// Props overrides
if (props.variant.state?._hPropState?.[index]?.[key]) {
vnode.props[key] = props.variant.state._hPropState[index][key]
if (!vnode.dynamicProps) {
vnode.dynamicProps = []
}
if (!vnode.dynamicProps.includes(key)) {
vnode.dynamicProps.push(key)
}
}
}
Expand Down

0 comments on commit 5323b70

Please sign in to comment.