How to have a click in the background unfocus all child components

I’ve noticed that in some of my components, a click in the background will unfocus any child components (i.e. TextButtons) that currently have focus.

Others do NOT.

I’d like to standardize this so that a click in the background (i.e. the parent component) will always unfocus any child components, but I have no idea where to look, and why I currently have this behavior in only some components.

Up until now, I’ve done nothing to investigate focus, and all components are created with the default focus settings.