fix: don't toggle translate-result

This commit is contained in:
Zhicheng Wang 2017-08-15 23:14:00 +08:00
parent a70679fb5a
commit 1d757f330b

View File

@ -145,7 +145,7 @@ export class DocViewerComponent implements DoCheck, OnDestroy {
const element = findTranslationResult($event.target as Element);
if (element.hasAttribute('translation-result')) {
const origin = element.nextElementSibling;
if (!origin) {
if (!origin || origin.hasAttribute('translation-result')) {
return;
}