-
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
Revert "22803 - Pasting text or link in edit message pastes the text or link in main compose box" #22845
Conversation
…or link in main compose box"
@eVoloshchak Please 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] |
(Assigning the review to @Santhosh-Sellavel directly because they already have context on the issue) |
Reviewer Checklist
Screenshots/VideosSkipping as it just a revert WebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
src/components/Composer/index.js
Outdated
} | ||
|
||
if (['INPUT', 'TEXTAREA'].includes(event.target.nodeName)) { | ||
if (!this.props.checkComposerVisibility() && !this.state.isFocused) { |
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.
This does not fix anything
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.
Need to add this check also if (this.textInput.id !== event.target.id) { return; }
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.
Are you suggesting we keep if (!this.props.checkComposerVisibility()) {
then? I went with a straight revert but I can update if you'd prefer.
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.
Yeah, this bug here seems to be low on priority and better than both!
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.
Updated
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.
So we could create a new issue for that alone while we look for a solution. What do you say?
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.
Sorry we must have posted at the same time and GitHub didn't initially show me this message.
We're discussing 1:1 now to figure out the best solution.
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.
Update for visibility: we looked into a few other options but didn't find one that fully worked. The current plan is to:
- Go ahead and merge this revert PR so that we can unblock the production deploy (we're kind of in a rush today so we can deploy other important changes)
- Look for a proper solution later on
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.
Lets revert
@hayata-suenaga Please 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] |
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.
Jumping in since deploy blockers are high priority
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Revert "22803 - Pasting text or link in edit message pastes the text or link in main compose box" (cherry picked from commit ed22d89)
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.40-5 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
Details
This reverts #22817 until we find a proper fix that addresses #22833 and #22803.
cc @robertKozik for visibility
Fixed Issues
$ #22833
Tests
# testing
# testing
)Offline tests
Same as above
QA Steps
Same as above
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.Screenshots/Videos
Web
Screen.Recording.2023-07-13.at.1.59.30.PM.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android