Skip to content

Commit 43e9edf

Browse files
committedSep 13, 2018
fix: conflict with paste function
1 parent b043ef0 commit 43e9edf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/renderer/views/Translate.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,15 @@ export default class Translate extends Vue {
329329
const { value } = this.source;
330330
await Tools.eventLoop(() => value || value !== this.source.value);
331331
this.translate(...this.translateParams);
332+
this.throttleHandleTranslate();
332333
}
333334

334335
private handlePause() {
335336
this.audio.pause();
336337
}
337338

338-
private handleTranslate() {
339+
private async handleTranslate() {
340+
await this.$nextTick();
339341
if (!this.target.value || this.target.error) {
340342
this.translate(...this.translateParams);
341343
}

0 commit comments

Comments
 (0)
Please sign in to comment.