chore: update
This commit is contained in:
parent
a48e32f8c9
commit
dc3f912739
|
@ -270,7 +270,7 @@ export function createComponent(
|
|||
) {
|
||||
const el = getRootElement(instance)
|
||||
if (el) {
|
||||
applyFallthroughProps(el, instance.attrs)
|
||||
renderEffect(() => applyFallthroughProps(el, instance.attrs))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -297,11 +297,9 @@ export function applyFallthroughProps(
|
|||
block: Block,
|
||||
attrs: Record<string, any>,
|
||||
): void {
|
||||
renderEffect(() => {
|
||||
isApplyingFallthroughProps = true
|
||||
setDynamicProps(block as Element, [attrs])
|
||||
isApplyingFallthroughProps = false
|
||||
})
|
||||
isApplyingFallthroughProps = true
|
||||
setDynamicProps(block as Element, [attrs])
|
||||
isApplyingFallthroughProps = false
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -194,7 +194,7 @@ export function applyTransitionHooks(
|
|||
if (fallthroughAttrs && instance.hasFallthrough) {
|
||||
// mark single root
|
||||
;(child as any).$root = true
|
||||
applyFallthroughProps(child, instance.attrs)
|
||||
renderEffect(() => applyFallthroughProps(child, instance.attrs))
|
||||
}
|
||||
|
||||
return resolvedHooks
|
||||
|
|
Loading…
Reference in New Issue