You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
Lilaro and I tried to fix this, and didn't succeed, but here's some initial research that might be helpful:
the window location is changing because the anchorEl prop that determines where the popper displays is getting wiped out when you change chats in the sidebar.
one totally acceptable solution would be for the mention popper to simply not be displayed at all when you switch back to the original chat—at least until the user adds or removes text from the mentioned username, or adds a new mention.
It seems like setMentionsToSelect([]) that ran when the user switches away would achieve this.
I'm not sure where to trigger this.
It seems like the bug is happening in line 96 of MentionPoper.js: zIndex: positionX === 0 || positionY === 0 ? -1 : 0 where when the position is in the top left we're trying to set zIndex to -1. You can inspect the element and see that while the position is (0,0) the zIndex is still set to 0, not -1. I think the issue may be that positionX and position Y are either not set or are nonzero when this conditional gets evaluated, but I'm not sure.
Since there are other bugs (for example, the list of users simply doesn't show sometimes once you start typing, even though there are matches) and since this component has a lot going on and is crucial to the user experience, it might make sense to use a library for this if we haven't already.
Windows with a hint used to tag users on channels moves to the top left corner in some situations.
System: MacOS and Windows
Steps to rectorate:
It should looks like this:
In incorrect state it looks like this:
The text was updated successfully, but these errors were encountered: