Input with dynamic width
anthony-bernardo opened this issue · comments
Anthony Bernardo commented
I have a bug with this feature. The input show at start only 2px of the input
When the page is initialized :
Then when I click on the input, it's ok :
<div className="form-group">
<TagsInput value={props.tags}
onChange={(tags) => props.handleChange(tags)}
onlyUnique={true}
inputProps={{
className: 'react-tagsinput-input',
placeholder: 'Booking-code'
}}
renderInput={
function autosizingRenderInput({addTag, ...props}) {
let {onChange, value, ...other} = props
return (
<AutosizeInput type='text' onChange={onChange} value={value} {...other} />
)
}
}
/>
</div>