function autoResize() { console.log('resizing'); textInput.style.height = (textInput.scrollHeight) + 'px'; }