-
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 - Chat - Emoji is entered twice when entering via Windows OS keyboard #35339
Comments
👋 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:
|
Triggered auto assignment to @jasperhuangg ( |
We think that this bug might be related to #vip-vsb |
Unfortunately I don't have a PC that can reproduce this issue–it seems relatively minor and not worth blocking deploy on. |
Triggered auto assignment to @sophiepintoraetz ( |
@situchan. Sure I'll have a look at this. |
@situchan Here is what I found. Seems like a quirk with Windows emoji picker. If we append any character to the emoji (whitespace in this case), it triggers a second onChange with the same emoji added again. Also this happens only when the emoji picker is set to stay open. If we change the setting to auto close, it doesn't happen any more. Also a quick web search reveals some other apps like Discord, Youtube comments also facing same issue. Infact I could reproduce it myself in YouTube comments section. One way to fix this would be to add a debounce to prevent the duplicate onChange event trigger. The wait time needs to be only as small as const onChangeText = useCallback(
(commentValue) => {
const debounced = _.debounce(updateComment, 1, true)
debounced(commentValue, true);
...
}
}, [updateComment]); If this sounds reasonable I'll raise a PR. |
I understand there's no straightforward solution but we can also open for better solutions. |
@sophiepintoraetz yes, sure |
Triggered auto assignment to @conorpendergrast ( |
I am not convinced that we should fix this; it's only affecting Windows which is not one of our supported platforms. I'll sense-check that via Slack and will come back to this |
I am also inclined to closing this. And revisit after waves are gone |
Yeah, cool. Given we both agree, I am going to close this out as a do-nothing situation. Thanks for your thoughts @situchan |
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: v1.4.33-1
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Each selection enters emoji once.
Actual Result:
Each selection enters emoji twice.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6360193_1706568193774.bandicam_2024-01-30_06-08-38-851.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: