fixes tailwindlabs/headlessui#1733 (#1734)

This commit is contained in:
Markus Baumer
2022-08-03 21:16:49 +02:00
committed by GitHub
parent d8d852ee84
commit fa10cb0fb9
@@ -168,7 +168,7 @@ let DisclosureRoot = forwardRefWithAs(function Disclosure<
},
props.as === undefined ||
// @ts-expect-error The `as` prop _can_ be a Fragment
props.as === React.Fragment
props.as === Fragment
)
)