auto focus in input textarea

This commit is contained in:
dingedi 2022-10-02 14:50:58 +02:00
parent e68ec8411d
commit 0e3b9a9ebd
No known key found for this signature in database
GPG key ID: EE23A12D271A3CED

View file

@ -92,6 +92,8 @@ document.addEventListener('DOMContentLoaded', function(){
M.FormSelect.init(this.$refs.targetLangDropdown);
if (this.$refs.inputTextarea){
this.$refs.inputTextarea.focus()
if (this.inputText === ""){
this.$refs.inputTextarea.style.height = this.inputTextareaHeight + "px";
this.$refs.translatedTextarea.style.height = this.inputTextareaHeight + "px";