Handles case where useTarget is on a parent element