Focus textarea after delete text

This commit is contained in:
Dingedi 2022-04-03 18:08:10 +02:00 committed by GitHub
parent a2bea5e300
commit 5b45b9a53b
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){
e.preventDefault();
this.inputText = this.translatedText = this.output = "";
this.$refs.inputTextarea.focus();
},
switchType: function(type) {
this.translationType = type;