Channel scrolls to bottom when clicking image
paulchen opened this issue ยท 13 comments
Description:
After reloading a channel, clicking an image in a message makes the channel scroll to the very bottom instead of showing the image.
Steps to reproduce:
- Open a channel in a browser.
- Refresh the page.
- Scroll up to a message containing an image.
- Click on the image.
Expected behavior:
The image is shown.
Actual behavior:
The channel scrolls to the very bottom:
simplescreenrecorder-2024-04-14_22.09.23.mp4
Server Setup Information:
- Version of Rocket.Chat Server: 6.7.0
- Deployment Method: Docker
- Number of Running Instances: 1
- MongoDB Version: 6.0.14
Client Setup Information
Based on the reports by the users on my Rocket.Chat instance, the issue seems to occur in every browser. I just successfully reproduced it using:
- Browser Version:
- Version 123.0.6312.105 (Offizieller Build) Arch Linux (64-Bit)
- Firefox 124.0.2 (64-bit)
- Operating System: Arch Linux
Additional context
The same behaviour occurs when clicking a link preview or an attachment.
We are witnessing the very same thing happening with the message toolbar. For instance:
- Switch from one channel to other
- Scroll up to some old message
- Hover mouse over the message and select
Reply in thread
Reply in thread action does not trigger and the message view scrolls to bottom.
Edit: Many other elements seem to trigger this too.
Edit2: Also reproducible in the official open.rocket.chat.
@juliajforesti Hi, do you think this issue could have been introduced by the new date bubble feature?
#31572
For some reason I am unable to produce it neither in open.rocket.chat or in my local dev environment.
2024-04-16.19-56-15.mov
For some reason I am unable to produce it neither in open.rocket.chat or in my local dev environment.
I can't reproduce it on open.rocket.chat either. Maybe this depends on the deployment method? There have been issues in the past that only occurred when using Docker.
I think they've simply fixed it there now. It did happen the last time I tested there, but I cannot reproduce there anymore either.
I have the same bug, it can be reproduced as follows:
-In the browser (refresh the page):
-In the app (View menu -> Refresh without cache):
- Open any chat with a long history
- Scroll up until loading old messages
- Click on any message and it scrolls all the way down
I have the same problem after updating to version 6.7.0
Indeed it's an issue folks. Unfortunately it is a side effect introduced with the message keyboard navigation we shipped on 6.7
. It's already fixed an the 6.7.1
is on the way