forked from mirrors/LibreTranslate
fix swap lang
This commit is contained in:
parent
eb0df4d0df
commit
b833608f5c
1 changed files with 5 additions and 4 deletions
|
@ -166,7 +166,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
this.targetLang = t;
|
||||
this.inputText = this.translatedText;
|
||||
this.translatedText = "";
|
||||
this.handleInput();
|
||||
this.handleInput(e);
|
||||
},
|
||||
dismissError: function(){
|
||||
this.error = '';
|
||||
|
@ -269,9 +269,10 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
this.isSuggesting = true;
|
||||
},
|
||||
closeSuggestTranslation: function(e) {
|
||||
this.translatedText = this.savedTanslatedText
|
||||
|
||||
e.preventDefault();
|
||||
if(this.isSuggesting) {
|
||||
e.preventDefault();
|
||||
this.translatedText = this.savedTanslatedText
|
||||
}
|
||||
|
||||
this.isSuggesting = false;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue