mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-08-21 13:50:13 +02:00
Merge pull request #238 from dingedi/focus-textarea
Focus textarea after delete text
This commit is contained in:
commit
7da51e8680
@ -352,6 +352,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||||||
deleteText: function(e){
|
deleteText: function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.inputText = this.translatedText = this.output = "";
|
this.inputText = this.translatedText = this.output = "";
|
||||||
|
this.$refs.inputTextarea.focus();
|
||||||
},
|
},
|
||||||
switchType: function(type) {
|
switchType: function(type) {
|
||||||
this.translationType = type;
|
this.translationType = type;
|
||||||
|
Loading…
Reference in New Issue
Block a user