-
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
prevent focus event when long press in emoji suggestion component #17788
Conversation
@tgolen @rushatgabhane 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] |
One more question, do we need to change |
@rushatgabhane, could you please confirm the above question when you are free? Then I will upload all the test videos tomorrow and fill in the other list items. 🙂 |
@ntdiary sure, go ahead! |
@ntdiary im gonna assume this is ready for review. Let me know if that's not the case |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-26.at.19.42.14.movMobile Web - Chromescreen-20230426-000900_2.mp4Mobile Web - SafariScreen.Recording.2023-04-26.at.19.40.59.movDesktopScreen.Recording.2023-04-26.at.19.54.02.moviOSScreen.Recording.2023-04-26.at.19.35.01.movAndroidScreen.Recording.2023-04-26.at.19.35.13.mov |
@rushatgabhane, yeah, it's ready. Please feel free to let me know if you have any questions. 🙂 |
@ntdiary can you please merge Meanwhile, I've merged with |
return; | ||
} | ||
container.onpointerdown = (e) => { | ||
if (DeviceCapabilities.hasHoverSupport()) { |
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.
NAB: I'm curious - Does this mean this bug will occur on mWeb devices that support a stylus??
function hasHoverSupport() {
return !window.matchMedia('(hover: none)').matches;
}
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.
The purpose here is that for desktop web platforms that support hover, we don't need to prevent its default behavior, otherwise the emoji will be placed in the main composer immediately after the long-press is released.
Co-authored-by: Tim Golen <tgolen@gmail.com>
@ntdiary could you please fix the lint errors, thanks! Tests fine after merging |
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.
@tgolen LGTM!! 🏎️
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.
Thank you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.7-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.7-3 🚀
|
Details
Fixed Issues
$ #16485
PROPOSAL: #16485 (comment)
Tests
:sm
(to get the suggestion list)Offline tests
N/A
QA Steps
:sm
(to get the suggestion list)PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
mac-chrome.mp4
mac-safari.mp4
Mobile Web - Chrome
android-chrome.mp4
Mobile Web - Safari
ios-safari.mp4
Desktop
mac-desktop.mp4
iOS
ios-native.mp4
Android
android-native.mp4