| 916 | } | 916 | } |
| 917 | | 917 | |
| 918 | sendTextArea.addEventListener('input', () => { | 918 | sendTextArea.addEventListener('input', () => { |
| 919 | if (!cssAutofit) { | 919 | saveUserInputDebounced(); |
| | 920 | |
| | 921 | if (cssAutofit) { |
| | 922 | return; |
| | 923 | } |
| | 924 | |
| 920 | const hasContent = sendTextArea.value !== ''; | 925 | const hasContent = sendTextArea.value !== ''; |
| 921 | const fitsCurrentSize = sendTextArea.scrollHeight <= sendTextArea.offsetHeight; | 926 | const fitsCurrentSize = sendTextArea.scrollHeight <= sendTextArea.offsetHeight; |
| 922 | const isScrollbarShown = sendTextArea.clientWidth < sendTextArea.offsetWidth; | 927 | const isScrollbarShown = sendTextArea.clientWidth < sendTextArea.offsetWidth; |