-
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
Fix emoji search behavior when deleting all text #8828
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, all yours Marc!
Thanks I'm removing myself - just keeping an eye on the |
Kewl, I'll go ahead and merge this then. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by @sketchydroide in version: 1.1.57-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @chiragsalian in version: 1.1.57-17 🚀
|
Details
When all the text is deleted from the search, the highlighted emoji index was being reset to
8
(number of columns) instead of-1
(no emoji selected). This behavior was causing bugs like duplicating emoji section headers as well as inserting the textfrequentlyUsed
into the action compose input.Fixed Issues
$ #8824
Tests and QA
NOTE: If you find yourself with multiple emoji section headers, there is only one way to fix them:
NVP.set('expensify_frequentlyUsedEmojis', []);
from the JS consoleTo test that this fix is working properly:
QA Steps
Same as tests
Screenshots
Web
Imagine me pressing enter repeatedly at the end of this video
2022-04-28_18-50-31.mp4
Mobile Web
Does not apply because there is no search box
Desktop
Imagine me pressing enter repeatedly at the end of this video
2022-04-28_18-53-33.mp4
iOS
Does not apply because there is no search box
Android
Does not apply because there is no search box