-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Web - Unable to type when popover is open from emoji reaction #27250
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @dangrous ( |
Can't reproduce on dev |
ProposalPlease re-state the problem that we are trying to solve in this issue.On right-click on the emoji reaction, the input field loses focus. What is the root cause of that problem?The text input blurs when the emoji bubble is right-clicked: App/src/components/Reactions/EmojiReactionBubble.js Lines 75 to 83 in c17a085
What changes do you think we should make in order to solve the problem?Remove the right-click check in the onMouseDown={(e) => {
- // Allow text input blur when emoji reaction is right clicked
- if (e && e.button === 2) {
- return;
- }
-
// Prevent text input blur when emoji reaction is left clicked
e.preventDefault();
}} However, this was done by intention some time ago in this PR: #22107. Therefore, it's better to double-check if it's not an expected behavior. What alternative solutions did you explore? (Optional) |
Yeah with that comment there it really feels like expected behavior - I'm syncing with the team to confirm but I think we'll be able to close this out. |
I think typing in the composer when popover is open from emoji reaction is expected behaviour |
Due to #26826 |
I think this is not a blocker and can be tackled together in #25485. |
I'm not able re-produce this popover, how to enable this type of popup for reactions? I think when a popover is opened user should not be able to type. |
I have disabled it because, I was able to type in composer even when Attachment popup is opened, call option menu is also opened. |
discussing in Slack here to figure out expected behavior |
Also @aimane-chnaif I don't think it possible to have focus when a popover is opened. We remove focus from composer when a popover/modal so I think the expected behaviour is user shouldn't have any power to type when any modal is opened. |
@b4s36t4 here's production app behavior: Screen.Recording.2023-09-12.at.6.29.48.PM.movSo it's intentional not to blur composer when non-modal popover is open |
I think this is the only place we keep composer focused, in all other places like even for emoji popup we remove focus. |
#25485 is to fix that inconsistency |
Also, it's possible to focus on composer when emoji popup is open in production app, which is this GH Screen.Recording.2023-09-12.at.6.35.39.PM.mov |
in my view weather if we have any popup opened we should never focus the composer. |
it doesn't make any sense to allow few popups (this GH & and other issue) & doesn't allow few popups (call popover, attachment popover). |
@b4s36t4 that's the difference between non-modal and modal Attachment, RHP are modals while emoji popup, LHN menu are non-modals |
Those are non-modals of course. When you type something, you will notice that composer is focused in production app. The issue what you fixed should have touched only modals, not non-modals |
The Root cause of that issue is also
This is bug right? |
if that is expected, I touched it unknowingly which caused the regression. |
Let's wait for feedback |
Okay so we're gonna remove the deployblocker label here, and keep this open until we sort out which direction we want to move in. I'm of the mind to disallow typing on any pop up, but we want to hear some more thoughts from the team! Stay tuned. |
Just to sort some things out: if it appears that the issue is still relevant – will the proposals here potentially be reviewed, or it will it move to @b4s36t4? |
99% I'm gonna tackle this issue (this will get closed) if we choose to keep the few popup open and allow typing. If we're going to disallow all popups to not focus there is nothing we're gonna do. |
Okay, so after some discussion, we've decided that it makes sense to disallow typing when any pop up is open, so we don't need to work on this issue - as this is now expected behavior. Thanks for your patience! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
It should be able to type in the composer when a popover is open from an emoji reaction.
Actual Result:
Unable to type in the composer when the popover is open from emoji reaction
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.68.12
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screenshare.-.2023-09-12.2_12_09.PM.1.mp4
2023-09-12.15.35.43.mov
Expensify/Expensify Issue URL:
Issue reported by: @misgana96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694508014533939
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: