Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isHovered,
onToggle,
onEnter,
parentRef,
id,
...props
} = this.props;
return (
<button type="button" id="{id}"> onToggle(event, !isOpen)}
aria-expanded={isOpen}
onKeyDown={this.onKeyDown}
>
<span>{toggleText}</span>
</button>
);
}
}
{({ onSelect }) => (
<li role="none">
<button> {
if (!isDisabled) {
onClick(event);
onSelect(event, children);
}
}}
{...props}
>
{children}
</button>
</li>
)}
className,
isOpen,
onToggle,
onSelect,
screenReaderLabel,
toggleText,
searchButtonAriaLabel,
searchInputValue,
onSearchInputChange,
searchInputPlaceholder,
onSearchButtonClick,
...props
} = this.props;
return (
<div>
{screenReaderLabel && (
<span hidden="" id="{screenReaderLabelId}">
{screenReaderLabel}
</span>
)}
</div>
{({ onSelect }) => (
<li role="none">
<button> {
if (!isDisabled) {
onClick(event);
onSelect(event, children);
}
}}
{...props}
>
{children}
</button>
</li>
)}
isActive,
isHovered,
onToggle,
onEnter,
parentRef,
id,
...props
} = this.props;
return (
<button type="button" id="{id}"> onToggle(event, !isOpen)}
aria-expanded={isOpen}
onKeyDown={this.onKeyDown}
>
<span>{toggleText}</span>
</button>
);
}
}