Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { className, value, onChange, isValid, validated, isRequired, resizeOrientation, ...props } = this.props;
const orientation = 'resize' + resizeOrientation.charAt(0).toUpperCase() + resizeOrientation.slice(1);
return (
<textarea required="{isRequired}" aria-invalid="{!isValid" value=""> );
}
}</textarea>
className,
type,
value,
onChange,
isValid,
validated,
isReadOnly,
isRequired,
isDisabled,
...props
} = this.props;
return (
<input readonly="{isReadOnly}" disabled="{isDisabled}" required="{isRequired}" aria-invalid="{!isValid" value="{value}" type="{type}">
);
}
}
aria-label={ariaLabelClear}
type="button"
disabled={isDisabled}
>
)}
)}
{variant === SelectVariant.typeaheadMulti && !customContent && (
<div>
{toggleIcon && <span>{toggleIcon}</span>}
{selections && (Array.isArray(selections) && selections.length > 0) && selectedChips}
<input disabled="{isDisabled}" autocomplete="off" type="text" value="{typeaheadInputValue" placeholder="{placeholderText" aria-label="{ariaLabelTypeAhead}" id="select-multi-typeahead-typeahead" aria-activedescendant="{typeaheadActiveChild">
</div>
{selections && (Array.isArray(selections) && selections.length > 0) && (
createSearchBox = () => {
const { onSearch, searchPlaceholderText, searchProps } = this.props;
return (
<div>
onSearch(e.target.value)}
{...searchProps}
>
}
>
</div>
);
};
{toggleIcon && <span>{toggleIcon}</span>}
<span>{placeholderText}</span>
{selections && (Array.isArray(selections) && selections.length > 0) && (
<div>
<span>{selections.length}</span>
</div>
)}
)}
{variant === SelectVariant.typeahead && !customContent && (
<div>
{toggleIcon && <span>{toggleIcon}</span>}
<input disabled="{isDisabled}" autocomplete="off" type="text" value="{" placeholder="{placeholderText" aria-label="{ariaLabelTypeAhead}" id="select-typeahead" aria-activedescendant="{typeaheadActiveChild"></div>