Skip to content

Commit

Permalink
fix: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
0ces committed Oct 25, 2024
1 parent f1b02b4 commit 48cc4ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/inputs/hooks/useGrowingTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function useGrowingTextField({ inputRef, inputWrapRef, value, disabled }:
}
onHeightChange();
// This is a hack to re-measure the height of the textarea after all the content has been rendered (i.e. after multiple GridTable children have been rendered)
// See the InVirtualizedTable storybook for reproducing this behavior
setTimeout(() => onHeightChange(), 200);
}
}, [onHeightChange, value, inputRef, disabled, inputWrapRef]);
Expand Down

0 comments on commit 48cc4ec

Please sign in to comment.