Skip to content

Commit

Permalink
Fixed #9529 - ContextMenu Keyboard Controls does not prevent Tree Key…
Browse files Browse the repository at this point in the history
…board Controls
  • Loading branch information
yigitfindikli committed Nov 17, 2020
1 parent c589c6a commit fe70bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export class UITreeNode implements OnInit {
onKeyDown(event: KeyboardEvent) {
const nodeElement = (<HTMLDivElement> event.target).parentElement.parentElement;

if (nodeElement.nodeName !== 'P-TREENODE' || (!this.tree.contextMenu || this.tree.contextMenu.containerViewChild.nativeElement.style.display === 'block')) {
if (nodeElement.nodeName !== 'P-TREENODE' || (this.tree.contextMenu && this.tree.contextMenu.containerViewChild.nativeElement.style.display === 'block')) {
return;
}

Expand Down

0 comments on commit fe70bff

Please sign in to comment.