{({getInputProps}) =>
{
const {onBlur, onChange, onFocus} = getInputProps({
onKeyDown: handleKeyDown,
placeholder
});
// @ts-ignore
return (
{
chips.map((item, index) => (
))
}
,
onBlur,
multiline,
rows,
onChange: (event: React.ChangeEvent) =>
{
handleInputChange(event);
onChange(event);
},
onFocus,
placeholder,
onKeyDown: handleKeyDown
}}
/>
);
}}