title: How to programmatically focus to a node in PrimeNG Tree?
body: <p>Using PrimeNG, I can scroll to a TreeNode:</p>
  
  <p>In html:</p>
  
  <pre><code>&lt;p-tree #mytreeid id="mytree"&gt;&lt;/p-tree&gt;
  </code></pre>
  
  <p>In Angular:</p>
  
  <pre><code>@ViewChild("mytree") mytree: Tree;
  // selection is the TreeNode you want to scroll into view
  scrollToSelectionPrimeNgDataTree(selection, tree, elementIdName) {
        if (tree.value !== null) {
            let index = tree.value.indexOf(selection);
                let ele = document.getElementById(elementIdName).querySelectorAll("p-treenode")[index];
                ele.scrollIntoView();
                //ele.focus();
        }
    }
  </code></pre>
  
  <p>Question: How to make the TreeNode(ie. 'selection') focused? I tried to call the focus() method, but focus() is not the method of the Element.</p>