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 #101 from efedorenko/master
Browse files Browse the repository at this point in the history
Update styles if number of rows has been changed
  • Loading branch information
FrancescoCioria authored Apr 11, 2018
2 parents e4c302d + 588cb46 commit 2cc6773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TextareaAutosize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export default class TextareaAutosize extends React.Component<TextareaAutosize.P
);
}

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

0 comments on commit 2cc6773

Please sign in to comment.