Skip to content

Commit

Permalink
Exclude ref from TextareaAutosizeProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jun 3, 2020
1 parent 757355d commit db872f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-meals-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-textarea-autosize': patch
---

`ref` got excluded from `TextareaAutosizeProps`. It being included has caused problems when using `TextareaAutosizeProps` to declare wrapper components and there seems to be no value in having it included in this type.
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ type Style = Omit<
height?: number;
};

export type TextareaAutosizeProps = JSX.IntrinsicElements['textarea'] & {
export type TextareaAutosizeProps = Omit<
JSX.IntrinsicElements['textarea'],
'ref'
> & {
maxRows?: number;
minRows?: number;
onHeightChange?: (height: number) => void;
Expand Down

0 comments on commit db872f0

Please sign in to comment.