diff --git a/libs/design/tree/src/tree-item/tree-item.directive.ts b/libs/design/tree/src/tree-item/tree-item.directive.ts index 9660525a38..96ce6b27db 100644 --- a/libs/design/tree/src/tree-item/tree-item.directive.ts +++ b/libs/design/tree/src/tree-item/tree-item.directive.ts @@ -1,9 +1,7 @@ -import { DOCUMENT } from '@angular/common'; import { Directive, HostBinding, HostListener, - Inject, Input, } from '@angular/core'; @@ -118,7 +116,6 @@ export class DaffTreeItemDirective { @Input() selected = false; constructor( - @Inject(DOCUMENT) private document: any, private treeNotifier: DaffTreeNotifierService, ) {} @@ -152,7 +149,6 @@ export class DaffTreeItemDirective { openParent(tree.parent); }; openParent(this._node._treeRef); - (this.document).getElementById('tree-' + this.node._treeRef.parent.id).focus(); this.treeNotifier.notify(); } @@ -164,7 +160,6 @@ export class DaffTreeItemDirective { return; } this.node._treeRef.parent.open = !this.node._treeRef.parent.open; - (this.document).getElementById('tree-' + this.node._treeRef.parent.id).focus(); this.treeNotifier.notify(); }