Skip to content

Commit

Permalink
remove focusing
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Jul 23, 2024
1 parent 776122a commit a54b334
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libs/design/tree/src/tree-item/tree-item.directive.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { DOCUMENT } from '@angular/common';
import {
Directive,
HostBinding,
HostListener,
Inject,
Input,
} from '@angular/core';

Expand Down Expand Up @@ -118,7 +116,6 @@ export class DaffTreeItemDirective {
@Input() selected = false;

constructor(
@Inject(DOCUMENT) private document: any,
private treeNotifier: DaffTreeNotifierService,
) {}

Expand Down Expand Up @@ -152,7 +149,6 @@ export class DaffTreeItemDirective {
openParent(tree.parent);
};
openParent(this._node._treeRef);
(<Document>this.document).getElementById('tree-' + this.node._treeRef.parent.id).focus();
this.treeNotifier.notify();
}

Expand All @@ -164,7 +160,6 @@ export class DaffTreeItemDirective {
return;
}
this.node._treeRef.parent.open = !this.node._treeRef.parent.open;
(<Document>this.document).getElementById('tree-' + this.node._treeRef.parent.id).focus();
this.treeNotifier.notify();
}

Expand Down

0 comments on commit a54b334

Please sign in to comment.