question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working on element in iframe

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
zxticommented, Jan 29, 2020

@92thunder Amazing! Thank you!

1reaction
92thundercommented, Jan 29, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found