When scrolling from the bottom to the top of a discussion with 20 chat entries in the any "Discussion Notes" section, the page reloads unexpectedly after reaching the 15th chat. This forces the user to start scrolling from the bottom again, disrupting the navigation experience.
To Reproduce
Steps to reproduce the behavior:
Navigate to the Patient tab and select any patient card.
Click on the Discussion Notes section.
Add 20 chat messages.
Attempt to scroll from the bottom to the top of the chat history.
See error
Expected behavior
The user should be able to smoothly scroll from the bottom to the top of the chat history without the page reloading or resetting the scroll position.
Describe the bug
When scrolling from the bottom to the top of a discussion with 20 chat entries in the any "Discussion Notes" section, the page reloads unexpectedly after reaching the 15th chat. This forces the user to start scrolling from the bottom again, disrupting the navigation experience.
To Reproduce Steps to reproduce the behavior:
Expected behavior
The user should be able to smoothly scroll from the bottom to the top of the chat history without the page reloading or resetting the scroll position.
Screenshots