iFrame embedded Librechat scrolls parent page #7289
Unanswered
kstanitzok
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to embed LibreChat via an <iframe>-element to create a widget-like element that allows users to interact with it.
Whenever new messages are generated within LibreChat, it automatically calls scrollIntoView() on the latest message element to ensure it is visible. This also causes the parent page (i.e., the page embedding the iframe) to scroll unexpectedly. The outer page jumps or shifts its scroll position every time a new message is added inside the iframe.
Is there a way to prevent this behavior?
Beta Was this translation helpful? Give feedback.
All reactions