Skip to content

Commit

Permalink
fix: prop override when no props are passed from the template
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 3, 2022
1 parent bad86f4 commit bcfd8ff
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ async function mountVariant () {
// Props overrides
if (props.variant.state?._hPropState?.[index]?.[key]) {
if (!vnode.props) {
vnode.props = {}
}
vnode.props[key] = props.variant.state._hPropState[index][key]
if (!vnode.dynamicProps) {
vnode.dynamicProps = []
Expand Down

0 comments on commit bcfd8ff

Please sign in to comment.