This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
[0.2.0] Page scrolling to <ReactTypeformEmbed /> component on load. Any workarounds? #27
Comments
I'm having the same issue ! |
Same here any solutions? |
Did you find any workaround? |
I have not. Have since moved to directly linking to the form. |
Same this keep happening |
After some testing, it seems to only happen in Firefox not Chrome |
A workaround is to use the embed code given by Typeform and putting the script tag in my index.html.
|
I stumbled on this a few months back. I solved it by putting the component at the top of the page and using the React Context API to expose the
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Howdy!
On page load we're taken all the way to the bottom of the page and the user has to scroll all the way up. (So I position my ReactTypeformEmbed at the very bottom of the page, and then the user is scrolled to that component not after the component is loaded (tried fixing with a setScroll on the componentWillMount function), but after the (embedded) typeform pagee loads.
Here's a snippit for context:
Full source for that page found here: https://github.com/MarioLopezBaylor/wacode-site/blob/master/src/views/LandingPage/LandingPage.jsx
And here's the render function from the component:
Full source for this other component found here: https://github.com/MarioLopezBaylor/wacode-site/blob/master/src/views/LandingPage/Sections/SectionWork.jsx
If you need more context, here's the full repo: https://github.com/MarioLopezBaylor/wacode-site
Maybe I'm being dumb about this? Let me know.
Thanks for looking into it!
The text was updated successfully, but these errors were encountered: