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 }}
Repository navigation
Web - Unable to type when popover is open from emoji reaction #27250
Open popover from emoji reaction by clicking right-click
Start typing
Observe the result
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?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
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
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
// 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();
}}
What changes do you think we should make in order to solve the problem?
Remove the right-click check in the onMouseDown function of EmojiReactionBubble:
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 this is not a blocker and can be tackled together in #25485. @dangrous can you please check #25485 (comment) and confirm the expected behavior?
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?
So that I could know whether to unsubscribe from this issue's updates, thanks.
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!
Activity
OSBotify commentedon Sep 12, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to @dangrous (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.jscardona12 commentedon Sep 12, 2023
Can't reproduce on dev
paultsimura commentedon Sep 12, 2023
Proposal
Please 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
onMouseDownfunction ofEmojiReactionBubble: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)
dangrous commentedon Sep 12, 2023
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.
misgana96 commentedon Sep 12, 2023
I think typing in the composer when popover is open from emoji reaction is expected behaviour
dangrous commentedon Sep 12, 2023
Due to #26826
aimane-chnaif commentedon Sep 12, 2023
I think this is not a blocker and can be tackled together in #25485.
@dangrous can you please check #25485 (comment) and confirm the expected behavior?
b4s36t4 commentedon Sep 12, 2023
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.
b4s36t4 commentedon Sep 12, 2023
I have disabled it because, I was able to type in composer even when Attachment popup is opened, call option menu is also opened.
dangrous commentedon Sep 12, 2023
discussing in Slack here to figure out expected behavior
6 remaining items
b4s36t4 commentedon Sep 12, 2023
it doesn't make any sense to allow few popups (this GH & and other issue) & doesn't allow few popups (call popover, attachment popover).
aimane-chnaif commentedon Sep 12, 2023
@b4s36t4 that's the difference between non-modal and modal
Attachment, RHP are modals while emoji popup, LHN menu are non-modals
b4s36t4 commentedon Sep 12, 2023
I don't think these two are modals.
aimane-chnaif commentedon Sep 12, 2023
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
b4s36t4 commentedon Sep 12, 2023
The Root cause of that issue is also
non-modals. I thought my PR would raise a regression so I updated that condition as well.This is bug right?
b4s36t4 commentedon Sep 12, 2023
if that is expected, I touched it unknowingly which caused the regression.
aimane-chnaif commentedon Sep 12, 2023
Let's wait for feedback
dangrous commentedon Sep 12, 2023
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.
paultsimura commentedon Sep 12, 2023
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?
So that I could know whether to unsubscribe from this issue's updates, thanks.
b4s36t4 commentedon Sep 12, 2023
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.
dangrous commentedon Sep 13, 2023
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!