Let the textarea grow
()
| 78 | |
| 79 | /** Let the textarea grow */ |
| 80 | function handleResize() { |
| 81 | if (ref.current) { |
| 82 | ref.current.style.height = '0'; |
| 83 | ref.current.style.height = ref.current.scrollHeight + 'px'; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /** Resize the text area when the text changes, or it is set to active */ |
| 88 | React.useEffect((): void => { |
no outgoing calls
no test coverage detected