Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from buildo/114-provide_an_instance_method
Browse files Browse the repository at this point in the history
#114: Provide an instance method to update size (closes #114)
  • Loading branch information
FrancescoCioria authored Dec 6, 2018
2 parents eebff48 + d5e11ad commit 7f43c96
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/TextareaAutosize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ export class TextareaAutosize extends React.Component<TextareaAutosize.Props, Te
);
}

componentDidUpdate(prevProps: TextareaAutosize.Props) {
if (this.props.value !== this.currentValue || this.props.rows !== prevProps.rows) {
this.dispatchEvent(UPDATE);
}
componentDidUpdate() {
this.dispatchEvent(UPDATE);
}

}

0 comments on commit 7f43c96

Please sign in to comment.