diff --git a/packages/runtime-vapor/src/apiCreateComponentSimple.ts b/packages/runtime-vapor/src/apiCreateComponentSimple.ts index edcd77875..562fdd640 100644 --- a/packages/runtime-vapor/src/apiCreateComponentSimple.ts +++ b/packages/runtime-vapor/src/apiCreateComponentSimple.ts @@ -48,14 +48,16 @@ export function createComponentSimple( ) as Block // single root, inherit attrs - // let i - // if (component.inheritAttrs !== false && node instanceof Element) { - // renderEffectSimple(() => { - // // for (const key in instance.attrs) { - // // i = key - // // } - // }) - // } + if ( + rawProps && + component.inheritAttrs !== false && + node instanceof Element && + Object.keys(instance.attrs).length + ) { + renderEffectSimple(() => { + // TODO + }) + } instance.scope.off() currentInstance = prevInstance