Fixes right click selection focus issues in Tree. (#12618)

Change-Id: I1057424fc8956b05e15a92c32e48a767e9fc8df9