-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Use DOM activeElement instead of event target in composer focus logic #17428
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
Use DOM activeElement instead of event target in composer focus logic #17428
Conversation
|
@Santhosh-Sellavel @AndrewGable One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
|
|
Still adding iOS native and iOS mWeb evidences (having some simulator problems) but in the meantime this is ready for reviews |
|
yikes! |
|
Still pod installing stuff here to test iOS and iOS mWeb I'd appreciate if someone else managed to run and test those 2 platforms. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-14.at.04.46.21.movMobile Web - ChromeScreen.Recording.2023-04-14.at.05.01.05.movMobile Web - SafariScreen.Recording.2023-04-14.at.04.50.21.movDesktopScreen.Recording.2023-04-14.at.04.47.55.mov |
|
Added the final iOS native evidence! Thks for helping @rushatgabhane. I'm clocking off here but I'll stay alert for any emails/messages if something needs my help! |
|
@rushatgabhane @PauloGasparSv should we also handle this? Screen.Recording.2023-04-13.at.9.51.52.PM.mov |
I think we should because Whatsapp and Slack doesn't behave like that when a message "reaction popup/popover" is opened. We may also have to include a fix for this too. |
…x-emoji-picker-filling-composer
|
@PauloGasparSv also we should handle the space key https://expensify.slack.com/archives/C049HHMV9SM/p1681466514310619 if the key is space we should also return early check slack. |
There are some many regressions being caused by these changes, I think we should sadly close this and revert the whole P.R. |
|
Closing this in favor of #17475 |


cc @tienifr @rushatgabhane @getusha @situchan
Details
Fixes another regression caused by #16098 where typing in the EmojiPicker searchbox also adds the input to the Composer.
We caught that problem early on for the chat's main emoji picker but not for the individual messages Emoji Picker.
Fixed Issues
$ #17413
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
For Web and Desktop:
For mWeb (both), iOS and Android
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-04-13.at.21.40.45.mov
Mobile Web - Chrome
Screen.Recording.2023-04-13.at.21.49.46.mov
Mobile Web - Safari
Screen.Recording.2023-04-13.at.22.31.32.mov
Desktop
Screen.Recording.2023-04-13.at.21.47.38.mov
iOS
Screen.Recording.2023-04-13.at.22.48.58.mov
Android
Screen.Recording.2023-04-13.at.21.45.11.mov