using react 16 portals, we are rendering part of our component tree into an iframe. We ran into the issue where the Media components in that part of the tree are referencing the parent window when we want it to reference the iframe.
Would you accept a PR to allow specifying the window object to be used (as an optional prop) for the matchMedia call, in our case sometimes an iframe's contentWindow?
using react 16 portals, we are rendering part of our component tree into an iframe. We ran into the issue where the
Mediacomponents in that part of the tree are referencing the parent window when we want it to reference the iframe.Would you accept a PR to allow specifying the window object to be used (as an optional prop) for the
matchMediacall, in our case sometimes an iframe'scontentWindow?