Skip to content

Commit 5ff5225

Browse files
authored
Improve error messages (#305)
* small improvement * validate Vue vnode Also change Fragment to "template", *oops*. * improve error messages in tests for Menu (Vue) Also actually making sure that we have valid MenuItem components... By default it renders a template, therefore `<MenuItem>Abc</MenuItem>` is technically incorrect.
1 parent 6f8225c commit 5ff5225

File tree

3 files changed

+211
-185
lines changed

3 files changed

+211
-185
lines changed

packages/@headlessui-react/src/components/description/description.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type DescriptionPropsWeControl = 'id'
8484
export function Description<TTag extends ElementType = typeof DEFAULT_DESCRIPTION_TAG>(
8585
props: Props<TTag, DescriptionRenderPropArg, DescriptionPropsWeControl>
8686
) {
87-
let { register, slot: slot } = useDescriptionContext()
87+
let { register, slot } = useDescriptionContext()
8888
let id = `headlessui-description-${useId()}`
8989

9090
useIsoMorphicEffect(() => register(id), [id, register])

0 commit comments

Comments
 (0)