-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fixed composer not catching paste events when unfocused #25900
Merged
Merged
Conversation
This file contains 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
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
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.59-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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