Child gets focus after clicking it's parent

I have a parent component which contains a couple of childs (labels, buttons and one textEditor). My problem is that when I click on the parent the textEditor gets the focus instead. However sometimes it doesn’t get the focus. Can I fix this behavior?