-
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
fix: prevent transparent suggestion list by using portal #27771
Conversation
@0xmiroslav 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] |
@rushatgabhane @0xmiroslav Please take a look at the PR |
@s-alves10 could you please change the title of the PR to something meaningful |
@@ -22,9 +22,6 @@ const propTypes = { | |||
* When this value is false, the suggester will have a height of 2.5 items. When this value is true, the height can be up to 5 items. */ | |||
isSuggestionPickerLarge: PropTypes.bool.isRequired, | |||
|
|||
/** Show that we should include ReportRecipientLocalTime view height */ | |||
shouldIncludeReportRecipientLocalTimeHeight: PropTypes.bool.isRequired, |
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.
@s-alves10 could you please explain why this isn't needed anymore?
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.
We use that for calculating the top
css here, but in cases using portal, this isn't needed anymore
Line 938 in bba5dee
function getAutoCompleteSuggestionContainerStyle(itemsHeight: number, shouldIncludeReportRecipientLocalTimeHeight: boolean): ViewStyle | CSSProperties { |
Updated |
Will you take a look again? |
Reviewer Checklist
Screenshots/VideosMobile Web - Chrome |
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.
@techievivek LGTM
Please take a look |
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.
Looks good.
✋ 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/techievivek in version: 1.3.75-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
Details
Used
measureParentContainer
instead ofparentContainerRef
on web platformsUsed portal for native platforms
Fixed Issues
$ #27036
PROPOSAL: #27036 (comment)
Tests
@
or:sm
to open mention or emoji suggestionsOffline tests
@
or:sm
to open mention or emoji suggestionsQA Steps
@
or:sm
to open mention or emoji suggestionsPR 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
27036_mac_chrome.mp4
Mobile Web - Chrome
27036_android_chrome.mp4
Mobile Web - Safari
27036_ios_safari.mp4
Desktop
27036_mac_desktop.mp4
iOS
27036_ios_native.mp4
Android
27036_android_native.mp4