mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-22 07:51:00 +00:00
auto focus in input textarea
This commit is contained in:
parent
e68ec8411d
commit
0e3b9a9ebd
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||||
M.FormSelect.init(this.$refs.targetLangDropdown);
|
M.FormSelect.init(this.$refs.targetLangDropdown);
|
||||||
|
|
||||||
if (this.$refs.inputTextarea){
|
if (this.$refs.inputTextarea){
|
||||||
|
this.$refs.inputTextarea.focus()
|
||||||
|
|
||||||
if (this.inputText === ""){
|
if (this.inputText === ""){
|
||||||
this.$refs.inputTextarea.style.height = this.inputTextareaHeight + "px";
|
this.$refs.inputTextarea.style.height = this.inputTextareaHeight + "px";
|
||||||
this.$refs.translatedTextarea.style.height = this.inputTextareaHeight + "px";
|
this.$refs.translatedTextarea.style.height = this.inputTextareaHeight + "px";
|
||||||
|
|
Loading…
Reference in a new issue