MLAttributes; const extendedChildren = () => variant === SelectVariant.checkbox ? this.extendCheckboxChildren(children as React.ReactElement[]) : this.extendChildren(inputIdPrefix); if (isCustomContent) { variantProps.children = children; } else if (hasInlineFilter) { if (React.Children.count(children) === 0) { variantProps.children =
; } else { variantProps.children = (
{(children as React.ReactElement[]).shift()} {extendedChildren()}
); } } else { variantProps.children = extendedChildren(); if (!isGrouped) { Component = 'ul'; variantProps.role = 'listbox'; variantProps['aria-label'] = ariaLabel; variantProps['aria-labelledby'] = (!ariaLabel && ariaLabelledBy) || null; } } return ( {footer && (
{footer}
)} ); } render() { return {(context) => this.renderSelectMenu(context)}; } } export const SelectMenu = React.forwardRef>((props, ref) => ( {props.children} ));