ensure we always set portal to true when the anchor props is truthy
We already had this for most components, but I missed it for this component. This fixes that.
This commit is contained in:
@@ -1576,6 +1576,11 @@ function OptionsFn<TTag extends ElementType = typeof DEFAULT_OPTIONS_TAG>(
|
||||
let actions = useActions('Combobox.Options')
|
||||
let anchor = useResolvedAnchor(rawAnchor)
|
||||
|
||||
// Always enable `portal` functionality, when `anchor` is enabled
|
||||
if (anchor) {
|
||||
portal = true
|
||||
}
|
||||
|
||||
let [floatingRef, style] = useFloatingPanel(anchor)
|
||||
let getFloatingPanelProps = useFloatingPanelProps()
|
||||
let optionsRef = useSyncRefs(data.optionsRef, ref, anchor ? floatingRef : null)
|
||||
|
||||
Reference in New Issue
Block a user