import TextArea, { TextAreaProps, TextAreaRef } from 'antd/lib/input/TextArea'; import React, { Ref } from 'react'; import { FieldProps, connectField, filterDOMProps } from 'uniforms'; import wrapField from './wrapField'; export type LongTextFieldProps = FieldProps< string, // FIXME: Why `onReset` fails with `wrapField`? Omit, { inputRef?: Ref } >; function LongText({ rows = 5, ...props }: LongTextFieldProps) { return wrapField( props,