Merge pull request #238 from dingedi/focus-textarea

Focus textarea after delete text
This commit is contained in:
Dingedi 2022-04-03 18:21:51 +02:00 committed by GitHub
commit 7da51e8680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;