|
@@ -3,11 +3,11 @@ import TextareaAutosize from 'react-autosize-textarea';
|
|
|
import isPropValid from '@emotion/is-prop-valid';
|
|
|
import styled from '@emotion/styled';
|
|
|
|
|
|
-import {InputProps, inputStyles} from 'sentry/components/input';
|
|
|
+import {inputStyles, InputStylesProps} from 'sentry/components/input';
|
|
|
|
|
|
export interface TextAreaProps
|
|
|
extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'css'>,
|
|
|
- Omit<InputProps, keyof React.InputHTMLAttributes<HTMLInputElement>> {
|
|
|
+ InputStylesProps {
|
|
|
/**
|
|
|
* Enable autosizing of the textarea.
|
|
|
*/
|
|
@@ -23,7 +23,7 @@ export interface TextAreaProps
|
|
|
}
|
|
|
|
|
|
const TextAreaControl = forwardRef(function TextAreaControl(
|
|
|
- {autosize, rows, maxRows, ...p}: TextAreaProps,
|
|
|
+ {autosize, rows, maxRows, size: _size, ...p}: TextAreaProps,
|
|
|
ref: React.Ref<HTMLTextAreaElement>
|
|
|
) {
|
|
|
return autosize ? (
|