stream-chat-react
stream-chat-react copied to clipboard
bug: VirtualizedMessageList breaks "position: fixed" element inside the scroller
Describe the bug
react-virtuoso commit added "will-change: transform" style property to the list scroller and created new stack context for inner elements (MDN). Attachment gallery modal has "position: absolute" behavior and renders regarding the list now.
![](https://user-images.githubusercontent.com/27233636/175923204-b4cf0223-3d32-4a92-8635-652e867e8a5c.png)
Screenshots
![](https://user-images.githubusercontent.com/27233636/175923204-b4cf0223-3d32-4a92-8635-652e867e8a5c.png)
Package version
- stream-chat-react:
@arzamax thanks for reporting that. The will-change
combats a problem introduced in Chrome 102, but it indeed leads to the unintended consequences of the gallery not working as expected.
@arzamax as a temporary measure, you can remove the will-change setting:
<VirtualizedMessageList additionalVirtuosoProps={{ style: { willChange: 'unset' }, increaseViewportBy: { top: 400, bottom: 200 } }} />
Unfortunately, I am still unable to reproduce (and, potentially, find alternative cures) for this problem: https://github.com/petyosi/react-virtuoso/issues/675.
Managed to reproduce in Browserstack. The good news is that this seems fixed in Chrome 103. But it's still broken in Edge 102.