1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

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;