MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / handleResize

Function handleResize

data-browser/src/views/Element.tsx:80–85  ·  view source on GitHub ↗

Let the textarea grow

()

Source from the content-addressed store, hash-verified

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 => {

Callers 2

handleOnChangeFunction · 0.70
ElementEditFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected