Working with iFrames and React #395
Unanswered
lukestewart13
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there. Any idea on how to get OverlayScrollbars working with iFrames in React?
I've been staring at the non-React example down the bottom here for some time, but I'm quite confused about what this line is doing and how to translate its functionality over to React:
onload="window.osiFrame = OverlayScrollbars(document.getElementById('iframe-demo-element').contentWindow.document.body, { autoUpdate : false, resize: 'both' })"
The iFrame source has the same origin, and in fact I'm just testing with a static source doc. Any hints would be really appreciated! Thank you.
Solved. Annoying that you can't delete discussions. Feel free to delete.
Beta Was this translation helpful? Give feedback.
All reactions