Skip to content
Snippets Groups Projects
Unverified Commit e68ec841 authored by Dingedi's avatar Dingedi Committed by GitHub
Browse files

Merge pull request #326 from dingedi/feature/swap-langs-fix

fix swap lang
parents eb0df4d0 b833608f
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ document.addEventListener('DOMContentLoaded', function(){ ...@@ -166,7 +166,7 @@ document.addEventListener('DOMContentLoaded', function(){
this.targetLang = t; this.targetLang = t;
this.inputText = this.translatedText; this.inputText = this.translatedText;
this.translatedText = ""; this.translatedText = "";
this.handleInput(); this.handleInput(e);
}, },
dismissError: function(){ dismissError: function(){
this.error = ''; this.error = '';
...@@ -269,9 +269,10 @@ document.addEventListener('DOMContentLoaded', function(){ ...@@ -269,9 +269,10 @@ document.addEventListener('DOMContentLoaded', function(){
this.isSuggesting = true; this.isSuggesting = true;
}, },
closeSuggestTranslation: function(e) { closeSuggestTranslation: function(e) {
this.translatedText = this.savedTanslatedText if(this.isSuggesting) {
e.preventDefault();
e.preventDefault(); this.translatedText = this.savedTanslatedText
}
this.isSuggesting = false; this.isSuggesting = false;
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment