Calling event.stopPropagation inside the portal can prevent the event from reaching parent React handlers.
Question 14 of 20 in React Portals Quiz