-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat - The cursor is displayed at the beginning when you edit a message. #53797
Comments
Triggered auto assignment to @stephanieelliott ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The cursor is at the beginning of the message if we open the admins room from the workspace profile page. What is the root cause of that problem?The root cause of the issue is similar to #46095. This is caused by the active focus traps that prevents the focus event to be received by the composer. You can read more detail on that root cause here. The different thing in this issue is, we already pause the focus trap if the screen isn't focused.
In this case, the screen that has the active focus trap is the workspace full screen navigator. When we open the workspace profile share page, the workspace full screen navigator focus trap is paused. When we click the #admins room link, the RHP is closed and focus trap automatically unpause the previous focus trap, which is the workspace full screen navigator focus trap. What changes do you think we should make in order to solve the problem?We don't want the workspace full screen navigator focus trap to be unpaused when the RHP is closed because the screen is still blurred. We have 2 options. First, instead of pausing the focus trap when the screen is blurred, we can deactivate it. We can return App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 35 to 36 in 8981081
If the focus trap is deactivated, unpause doesn't do anything. Second, we can add a new option to the What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
@stephanieelliott you need to open the #admins room from the workspace share page. The issue is not only about the cursor being shown at the end of the text but also:
a.mp4 |
@stephanieelliott can you recheck this one, please? |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.73-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The cursor should always be displayed at the end of the message.
Actual Result:
This only happens after interacting with the #Admin room. When editing a message sent, the cursor is displayed at the beginning. After you type a letter, the cursor returns to the normal position. This is reflected in the group's chats and threads as well.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6689298_1733778439575.The_cursor.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: