Fixed composer not catching paste events when unfocused#25900
Merged
Conversation
Member
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemweb-chrome.movMobile Web - Safarimweb-safari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
s77rt
approved these changes
Aug 25, 2023
tgolen
requested changes
Aug 25, 2023
tgolen
approved these changes
Aug 25, 2023
Contributor
|
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.58-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Contributor
|
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.59-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Fixed Issues
$ #25550
PROPOSAL: #25550 (comment)
Tests
macOS web/desktop - testing steps to make sure the composer catches paste events when no input is focused:
All platforms - testing steps to make sure the composer does not catch paste events when another input is focused:
It's worth noting that the native composer has not been modified, since global pasting does not occur on touch devices.
Offline tests
Same as regular testing steps
QA Steps
Same as regular testing steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.A quick note regarding the composer Storybook story - the composer story is broken on staging. This is a known issue, and there is a PR on the way that fixes this. As such, the broken story is not related to this PR.
Screenshots/Videos
Web
Screen.Recording.2023-08-24.at.23.45.50.mov
Screen.Recording.2023-08-24.at.23.47.49.mov
Mobile Web - Chrome
Screen.Recording.2023-08-25.at.00.35.16.mov
Mobile Web - Safari
Screen.Recording.2023-08-25.at.00.27.50.mov
Desktop
Screen.Recording.2023-08-25.at.00.02.34.mov
Screen.Recording.2023-08-25.at.00.03.39.mov
iOS
The native composer has not been modified, but here's a video showing that pasting works on native:
Screen.Recording.2023-08-25.at.00.18.16.mov
Android
The native composer has not been modified, but here's a video showing that pasting works on native:
Screen.Recording.2023-08-25.at.01.02.17.1.mov