react-portal-frame
react-portal-frame copied to clipboard
Question about the event handlers
Nice work! :tada: While reading the source there is one place I don't quite understand. Why set all the event handlers to noop?
So React doesn't capture events from components that is ported to a different view (an iframe in this case), this is a work around this limitation. It tells React to pass all events captured within iframe view to its parent's view.
That's genius. How did you figure that out! :smile: I went back to dig up the source a little bit and still had no idea. Thanks for the work. This is really useful when dealing with iframe.