or
If the treeview is in open code, everything works as expected, i.e. if you click in the text you can start typing
If the treeview is in an angular directive, as soon as you release the mouse button, the textbox loses focus. If you click in the textbox, and then move the mouse out of the textbox before releasing the button, the textbox retains focus and you can type into it.