Skip to content

Commit

Permalink
I guess nextFrameActionId should be reset after textarea resized.
Browse files Browse the repository at this point in the history
  • Loading branch information
团结 committed Jul 6, 2017
1 parent 883f821 commit 6256734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class Input extends Component<InputProps, any> {
suffix: PropTypes.node,
};

nextFrameActionId: number;
nextFrameActionId?: number;
refs: {
input: any;
};
Expand Down Expand Up @@ -148,6 +148,7 @@ export default class Input extends Component<InputProps, any> {
const maxRows = autosize ? (autosize as AutoSizeType).maxRows : null;
const textareaStyles = calculateNodeHeight(this.refs.input, false, minRows, maxRows);
this.setState({ textareaStyles });
this.nextFrameActionId = undefined;
}

focus() {
Expand Down

0 comments on commit 6256734

Please sign in to comment.