fix: don't toggle translate-result
This commit is contained in:
parent
a70679fb5a
commit
1d757f330b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user