Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{selections &&
(selections as string[]).map(item => (
onSelect(e, item)} closeBtnAriaLabel={ariaLabelRemove}>
{this.getDisplay(item, 'node')}
))}
);
}
return (
<div width="" style="{{" direction="==">
</div>
{({ onSelect }) => (
<label>
<input type="checkbox" id="{value}"> {
if (!isDisabled) {
onClick(event);
onSelect(event, value);
}
}}
ref={this.ref}
checked={isChecked || false}</label>
>
<input type="checkbox" id="{value}"> {
if (!isDisabled) {
onClick(event);
onSelect(event, value);
}
}}
ref={this.ref}
checked={isChecked || false}
disabled={isDisabled}
/>
<span>
{children || value}
</span>
)}
{selections &&
(selections as string[]).map(item => (
onSelect(e, item)} closeBtnAriaLabel={ariaLabelRemove}>
{this.getDisplay(item, 'node')}
))}
);
}
return (
<div width="" style="{{" direction="==">
</div>
onKeyDown={this.onKeyDown}
disabled={isDisabled}
>
{children}
)}
{isTypeahead && (
<div>}
className={css(
styles.selectToggle,
isFocused && styles.modifiers.focus,
isHovered && styles.modifiers.hover,
isActive && styles.modifiers.active,
isDisabled && styles.modifiers.disabled,
isPlain && styles.modifiers.plain,
isTypeahead && styles.modifiers.typeahead,
className
)}
onClick={_event => {
if (!isDisabled) {
onToggle(true);
}
}}
onKeyDown={this.onKeyDown}
>
{children}
</div>
{({ onSelect, onClose, variant }) => (
{variant !== SelectVariant.checkbox && (
<li role="presentation">
{
if (!isDisabled) {
onClick(event);
onSelect(event, value, isPlaceholder);
onClose();
}
}}
role="option"
aria-selected={isSelected || null}
ref={this.ref}
onKeyDown={this.onKeyDown}
type="button"</li>
>
<input type="checkbox" id="{value.toString()}"> {
if (!isDisabled) {
onClick(event);
onSelect(event, value);
}
}}
ref={this.ref}
checked={isChecked || false}
disabled={isDisabled}
/>
<span>
{children || value.toString()}
</span>
)}
)}
id,
'aria-labelledby': ariaLabelledBy,
'aria-expanded': isExpanded,
'aria-haspopup': (variant !== SelectVariant.checkbox && 'listbox') || null
};
return (
{!isTypeahead && (
<button>}
type={type}
className={css(
styles.selectToggle,
isFocused && styles.modifiers.focus,
isHovered && styles.modifiers.hover,
isDisabled && styles.modifiers.disabled,
isActive && styles.modifiers.active,
isPlain && styles.modifiers.plain,
className
)}
onClick={_event => {
onToggle(!isExpanded);
if (isExpanded) {
onClose();
}
}}
onKeyDown={this.onKeyDown}
disabled={isDisabled}
>
{children}</button>