@pzerelles/headlessui-svelte 2.1.2-next.47 → 2.1.2-next.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,9 +41,7 @@
|
|
|
41
41
|
// If we have any of the enter/leave classes
|
|
42
42
|
Boolean(props.enter || props.enterFrom || props.enterTo || props.leave || props.leaveFrom || props.leaveTo) ||
|
|
43
43
|
// If the `as` prop is not a Fragment
|
|
44
|
-
!props.asChild
|
|
45
|
-
// If we have a single child, then we can forward the ref directly
|
|
46
|
-
props.children !== undefined
|
|
44
|
+
!props.asChild
|
|
47
45
|
)
|
|
48
46
|
}
|
|
49
47
|
</script>
|
|
@@ -118,7 +116,7 @@
|
|
|
118
116
|
if (!requiresRef) return
|
|
119
117
|
|
|
120
118
|
if (_state === TreeStates.Visible && container.current === null) {
|
|
121
|
-
throw new Error("Did you forget to passthrough the
|
|
119
|
+
throw new Error("Did you forget to passthrough the actual DOM node as `element`?")
|
|
122
120
|
}
|
|
123
121
|
})
|
|
124
122
|
|