react-frame-component
react-frame-component copied to clipboard
call onLoad given as Props
Currently onLoad is overridden by handleLoad so does not works.
We might need to rejig this once #207 merges as the logic moves away from onLoad to utilising DOMContentLoaded instead
@ryanseddon oh I didn't notice that.
Or maybe we don't need this. We manually subscribe load event by addEventListener so it seems there is no reason to give onLoad props of iframe. Can we just remove onLoad props at line 139?
@ryanseddon Sorry please forget the comment above, i misunderstood the logic.
I've added the commit 85b924e so that this PR won't conflict with #207.