{/* We disabled linting for this specific line because we consider that the onClick props is only used for */}
{/* mouse users, so this do not engender any issue for accessibility. */}
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
{downshiftReturn.selectedItem && (
)}
{children}
{clearable && !disabled && downshiftReturn.selectedItem && (
<>
{downshiftReturn.isOpen &&
options.map((item, index) => {
const isActive = index === downshiftReturn.highlightedIndex;
return (
-
{item.label}
);
})}