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
[HOLD for payment 2024-10-17] [$500] Chat - Edit composer is focused even if emoji picker is open #27612
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]Chat - Edit composer is focused even if emoji picker is open[/-][+][$500] Chat - Edit composer is focused even if emoji picker is open[/+]on Sep 16, 2023
What changes do you think we should make in order to solve the problem?
Set isFocusedRef.current to false if not it is not the active edit message box. Also to ensure that after selecting an emoji the current edit box becomes focused, we add focus(true) at the end of the addEmojiToTextBox handler.
Looking through our internal documentation, I believe we should keep this at $500 since that was the agreed-upon price, and we have not discussed altering it during the lifespan of this issue.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Chat - Edit composer is focused even if emoji picker is open[/-][+][$500] Chat - Edit composer is focused even if emoji picker is open[/+]melvin-bot commentedon Sep 16, 2023
Job added to Upwork: https://www.upwork.com/jobs/~016c6dc7febe9f77e8
melvin-bot commentedon Sep 16, 2023
Triggered auto assignment to @johncschuster (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 16, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Sep 16, 2023
Triggered auto assignment to @sakluger (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.melvin-bot commentedon Sep 16, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)Krishna2323 commentedon Sep 16, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - Edit composer is focused even if emoji picker is open
What is the root cause of that problem?
In the code, when the emoji picker hides, it directly sets the composer to be focused without checking if the emoji picker is currently visible.
App/src/pages/home/report/ReportActionItemMessageEdit.js
Lines 411 to 414 in 76c1559
What changes do you think we should make in order to solve the problem?
We need to add a check for
isEmojiPickerVisiblebefore focusing on the composer.Updated code:
Result
fixed.mp4
tanerochris commentedon Sep 17, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Report Edit Message composer remains focused when emoji picker remains open.
What is the root cause of that problem?
The issue stems from the fact that closing the emoji picker sets the isFocused state to true, this remains true when opening the emoji picker of another edit box.
https://github.com/Expensify/App/blob/c77814fd5e643cba78e8c8294370d78f633a59c5/src/pages/home/report/ReportActionItemMessageEdit.js#L411C1-L414C31
What changes do you think we should make in order to solve the problem?
Set
isFocusedRef.currenttofalseif not it is not the active edit message box. Also to ensure that after selecting an emoji the current edit box becomes focused, we addfocus(true)at the end of theaddEmojiToTextBoxhandler.180 remaining items
s77rt commentedon Oct 15, 2024
melvin-bot commentedon Oct 17, 2024
Payment Summary
Upwork Job
BugZero Checklist (@johncschuster)
eVoloshchak commentedon Oct 20, 2024
@johncschuster, should this be $500 or $250? The issue was originally $500 and I don't see any price changes, but that was set a long time ago
johncschuster commentedon Oct 22, 2024
Thanks for asking, @eVoloshchak! Let me chat with the team quickly about that. I'll be back shortly!
johncschuster commentedon Oct 22, 2024
Looking through our internal documentation, I believe we should keep this at $500 since that was the agreed-upon price, and we have not discussed altering it during the lifespan of this issue.
(I updated this comment to reflect $500)
johncschuster commentedon Oct 22, 2024
Payment Summary
Contributor+: @eVoloshchak due $500 via NewDot
Contributor: @s77rt due $500 via NewDot
JmillsExpensify commentedon Oct 23, 2024
$500 approved for @eVoloshchak
JmillsExpensify commentedon Oct 23, 2024
$500 approved for @s77rt