1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-05 07:20:13 +01:00

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){ 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;