Not working on element in iframe
See original GitHub issueHi, thanks for this great library!
I noticed that 2.2.20 was supposed to fix scrolling in iframes but it still doesn’t work for me.
I did some debugging, in case it’s helpful. In the computeScroll…() function, it’s detecting that isScrollable() is false on the target’s ownerDocument, so ultimately frames
is empty. The iframe is clearly scrollable but the clientHeight and scrollHeight are the same (taller than the iframe).
Not sure what the best fix is - thanks for taking a look!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
some elements in iframe is not loading - Stack Overflow
I'm using an iframe to load an external website to my webpage. iframe successfully loads the website. Then I compare the dom with...
Read more >JavaScript Cannot Get Elements From an iFrame
JavaScript Cannot Get Elements From an iFrame. Retrieving elements from an iFrame can be complicated process due to cross-browser incompatibility.
Read more >How to fix: Text not allowed in element “iframe” in this context.
Guide describing the HTML issue detected by the W3C Validator: Text not allowed in element “iframe” in this context.
Read more >[BUG] Firefox / Webkit: Unable to click element in iframe ...
I tried to click the element with Playwright Inspector opened but click didn't work. ... I am trying to migrate from Protractor to...
Read more >WalkMe Not Loading in an iFrame
Solution · Right-click into the site, click “Inspect”, and go to the Inspector (Firefox)/DOM Explorer (IE) · Locate the iFrame where your element ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@92thunder Amazing! Thank you!
@zxti @stipsan This issue was fixed by my changes( #616 ).
Your codesandbox didn’t work iframe for my environment, so I forked and created. Please make sure.
https://codesandbox.io/s/scroll-into-view-if-needed256-kk4t3