Skip to content

Commit

Permalink
ref type | null
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilad Gray committed Nov 30, 2018
1 parent 2dc2d1f commit 4784e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/forms/numericInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class NumericInput extends AbstractPureComponent<HTMLInputProps & INumeri
private static CONTINUOUS_CHANGE_DELAY = 300;
private static CONTINUOUS_CHANGE_INTERVAL = 100;

private inputElement: HTMLInputElement;
private inputElement: HTMLInputElement | null;

// updating these flags need not trigger re-renders, so don't include them in this.state.
private didPasteEventJustOccur = false;
Expand Down Expand Up @@ -367,7 +367,7 @@ export class NumericInput extends AbstractPureComponent<HTMLInputProps & INumeri
);
}

private inputRef = (input: HTMLInputElement) => {
private inputRef = (input: HTMLInputElement | null) => {
this.inputElement = input;
Utils.safeInvoke(this.props.inputRef, input);
};
Expand Down

0 comments on commit 4784e4a

Please sign in to comment.