Why expanding the input field when adding a single character?

Hello! Problem is that when you add any character into the input box, it expands, added 1 paragraph. At the same time, on LAN everything works fine. Disconnected all the attributes and still it remains so, can somebody, advice?
5cfcd87054b9c220857559.png
Code
<div class="dialog-wrapper__lower-panel">
 <form method="post" enctype="multipart/form-data" class="sendMessages write-message__emojiarea" data-emojiarea="" data-type="unicode" data-global-picker="false" style="display: flex;">
 <textarea name="textSendMessage" id="sendMessage" onkeydown="if(this.value !== &quot;&quot;) { Wo_SubmitForm(this, event); }" onfocus="Wo_SubmitForm(event);" class="write-message" placeholder="Write a message..." style="height: 37.8 px;"></textarea>

 <div class="emoji-button"><i class="fa fas-smile"></i>
 <div id="emo-window" class="dropup">
</div>

 <div class="write-message__attach">

 <i class="fa fas-paperclip dialog-show-btn">
 <div class="dialog-menu-wrapper. dialog-menu-wrapper_top">
 <div class="dialog-menu">
 <div class="dialog-menu__triangle"></div>
 <div class="dialog-menu__flexRow dialog-menu__settings_addPhoto" onclick="fileUploadBtn(1);">
 <i class="fa far-images dialog-menu__icon"></i>
 <div class="dialog-menu__text">Photo</div>
</div>
 <div class="dialog-menu__triangle"></div>
 <div class="dialog-menu__flexRow dialog-menu__settings_addVideo" toggle-modal-btn="" switching-modal="modal-window_attachVideo">
 <i class="fa fas-file-video-dialog-menu__icon"></i>
 <div class="dialog-menu__text">Video</div>
</div>
 <div class="dialog-menu__flexRow dialog-menu__settings_addGif" toggle-modal-btn="" switching-modal="modal-window_attachGif">
 <i class="far fa-file-audio dialog-menu__icon"></i>
 <div class="dialog-menu__text">Gif</div>
</div>
 <div class="dialog-menu__flexRow dialog-menu__settings_addDocument" onclick="fileUploadBtn(2);">
 <i class="fa far-file dialog-menu__icon"></i>
 <div class="dialog-menu__text">Document</div>
</div>
</div>
</div>
</i>
</div>

 <input type="file" id="sendMessasgeFile" name="sendMessageFile" onchange="Wo_ShareFile();" accept="image/x-png, image/gif, image/jpeg" style="display: none">
 <input type="hidden" id="user-id" name="user_id" value="0">
 <input type="hidden" id="messages-group-id" name="group_id" value="48">
 <input type="hidden" id="message-record-file" name="record-file" value="">
 <input type="hidden" id="message-record-name" name="record-name" value="">
 <input type="hidden" id="message-gif-attach" name="gif-attach" value="">
 <input type="hidden" id="message-gif-attach-name" name="gif-attach-name" value="">
 <input type="hidden" id="message-youtube-attach" name="youtube-attach" value="">
 <input type="hidden" id="message-youtube-attach-name" name="youtube-attach-name" value="">
 <input type="hidden" id="mode" name="mode" value="">
 <input type="hidden" id="maessages" name="maessages" value="">

 <input type="hidden" name="chatSticker" id="chatStickerMessage">

 <div class="write-message__send-message" onclick="if(document.getElementById(&quot;sendMessage&quot;).value != &quot;&quot;) { Wo_GetMRecordLink(); }">
 <i class="fas fa-location-arrow"></i>
</div>
</form>
 <div class="resend-message">
 <div class="resend-message__line"></div>
 <div class="resend-message__photo"></div>
 <div class="resend-message__wrapper">
 <div class="resend-message__upper-info">Gena Zozulya</div>
 <div class="resend-message__text-lower" textsize=""></div>
</div>
 <i class="resend-message__icon-close fas fa-times"></i>
</div>
 </div>
March 23rd 20 at 19:43
1 answer
March 23rd 20 at 19:45
Most likely, the scripts you have something connected to it.
Can put a crutch in the form of max-heigth properties for the textarea.

Find more questions by tags HTML