Skip to content

Commit

Permalink
Fix test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 10, 2017
1 parent 8feaf83 commit 6aa4138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/input/calculateNodeHeight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export default function calculateNodeHeight(
hiddenTextarea.setAttribute('style', `${sizingStyle};${HIDDEN_TEXTAREA_STYLE}`);
hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';

let minHeight = -Infinity;
let maxHeight = Infinity;
let minHeight = Number.MIN_SAFE_INTEGER;
let maxHeight = Number.MAX_SAFE_INTEGER;
let height = hiddenTextarea.scrollHeight;
let overflowY;

Expand Down

0 comments on commit 6aa4138

Please sign in to comment.