ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Hovering message actions causes page scroll

Open matthiasmoke opened this issue 1 year ago • 3 comments

Steps to reproduce:

  1. Open a longer chat such that the page has a scrollbar
  2. Scroll to the top
  3. Hover over any message action

Expected Results: The page is not scrolled automatically Actual: The page jumps which makes it impossible to click message actions further up the chat.

Notes: I'm pretty sure the issue stems from the tooltip being mounted when hovering over a button. I have not yet found a fix but will post any updates here.

https://github.com/user-attachments/assets/7671cda0-0680-438f-b385-effcfca076c6

matthiasmoke avatar Feb 04 '25 12:02 matthiasmoke

There's a fix referenced in https://github.com/vercel/ai-chatbot/pull/638 that works for me, but the PR is still open.

vwstang avatar Feb 04 '25 20:02 vwstang

Thanks @vwstang. The fix seems to work 👍

matthiasmoke avatar Feb 08 '25 15:02 matthiasmoke

added a fix here https://github.com/vercel/ai-chatbot/pull/791

khaledalyawad avatar Feb 13 '25 00:02 khaledalyawad