Closed michalkvasnicak closed 3 years ago
Following code causes TextArea to be slow or to ignore the input.
<Controller defaultValue="" name="description" onFocus={() => inputRef.current?.focus()} render={({ onBlur, onChange, value }) => ( <> <TextArea invalid={!!form.errors?.title} autoResize id="offer-description" name="description" onBlur={onBlur} onChange={(e) => onChange(e.currentTarget.value)} maxLength={800} ref={inputRef} rows={10} required value={value} /> <Box> <SmallText>{800 - value.length}</SmallText> </Box> </> )} />
When autoResize is removed, then it works correctly.
autoResize
Following code causes TextArea to be slow or to ignore the input.