-
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: Cannot search for emojis in status page. #46700
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
ref={(el) => (emojiSearchInput.current = el)} | ||
/> | ||
<FocusTrapForModal active={isEmojiPickerVisible}> | ||
<View> |
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.
Any reason for wrapping with View?
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.
@situchan, tab key navigation will not work if we don't wrap with view.
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.
@situchan, tab key navigation will not work if we don't wrap with view.
what's the root cause?
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.
I'm not sure about that, I have checked other components which uses FocusTrapForModal
and they all wrap the content with View. Should I look for the RC?
App/src/components/PopoverMenu.tsx
Lines 222 to 223 in e909496
<FocusTrapForModal active={isVisible}> | |
<View style={isSmallScreenWidth ? {} : styles.createMenuContainer}> |
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.
I have checked other components which uses FocusTrapForModal and they all wrap the content with View.
ok but EmojiPickerMenu's parent container is already View:
App/src/components/EmojiPicker/EmojiPickerMenu/index.tsx
Lines 308 to 315 in e909496
<View | |
style={[ | |
styles.emojiPickerContainer, | |
StyleUtils.getEmojiPickerStyle(shouldUseNarrowLayout), | |
// Disable pointer events so that onHover doesn't get triggered when the items move while we're scrolling | |
arePointerEventsDisabled ? styles.pointerEventsNone : styles.pointerEventsAuto, | |
]} | |
> |
What's wrong with it?
Should I look for the RC?
That would be great!
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.
I think I found the reason. It's because of forwardRef
export default React.forwardRef(EmojiPickerMenu); |
If we just return EmojiPickerMenu, it doesn't happen even without wrapping with View.
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.
@situchan, thanks 🙌🏻
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb Chromemchrome.mp4iOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
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 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/blimpich in version: 9.0.18-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
Details
Fixed Issues
$ #45629
PROPOSAL: #45629 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4