From 8115263424a0cca637bb5206c8eee214c93ac3e0 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Tue, 19 Nov 2024 08:43:38 +0100 Subject: [PATCH] chore: update props JSDoc comment --- packages/radix-vue/src/Primitive/Primitive.ts | 2 +- packages/radix-vue/src/Primitive/Slot.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/radix-vue/src/Primitive/Primitive.ts b/packages/radix-vue/src/Primitive/Primitive.ts index 9996f5ee4..de2d31cea 100644 --- a/packages/radix-vue/src/Primitive/Primitive.ts +++ b/packages/radix-vue/src/Primitive/Primitive.ts @@ -29,7 +29,7 @@ export interface PrimitiveProps { */ asChild?: boolean /** - * The element or component this component should render as. Can be overwrite by `asChild` + * The element or component this component should render as. Can be overwritten by `asChild`. * @defaultValue "div" */ as?: AsTag | Component diff --git a/packages/radix-vue/src/Primitive/Slot.ts b/packages/radix-vue/src/Primitive/Slot.ts index 872af8768..87eeec391 100644 --- a/packages/radix-vue/src/Primitive/Slot.ts +++ b/packages/radix-vue/src/Primitive/Slot.ts @@ -16,13 +16,13 @@ export const Slot = defineComponent({ const firstNonCommentChildren = childrens[firstNonCommentChildrenIndex] - // remove props ref from being inferred + // Remove props ref from being inferred delete firstNonCommentChildren.props?.ref const mergedProps = firstNonCommentChildren.props ? mergeProps(attrs, firstNonCommentChildren.props) : attrs - // remove class to prevent duplicated + // Remove class to prevent duplicated if (attrs.class && firstNonCommentChildren.props?.class) delete firstNonCommentChildren.props.class const cloned = cloneVNode(firstNonCommentChildren, mergedProps)