Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Commit 61d5452

Browse files
committed
fix(input): not to render slot container node if no slot content
1 parent bdc7336 commit 61d5452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/input/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const AtInput = defineComponent({
294294
})
295295
) || null,
296296

297-
h(View, {
297+
slots.default && h(View, {
298298
class: 'at-input__children'
299299
}, { default: () => slots.default?.() })
300300
]

0 commit comments

Comments
 (0)