only focus input if tree node closed has no parent