Fixes some issues with component focus not working with overlapping components.