Mention list doesnt automatically popup when typing @#25660
Conversation
|
@arosiclair 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] |
|
@WikusKriek Does this fix the native ios as well? |
|
@techievivek this is ready. |
|
Actually found that waiting for selection to update in state and then calling calculateMentionSuggestion fixes the issue on all platforms. const onSelectionChange = (e) => {
LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity));
setSelection(e.nativeEvent.selection);
/**
* we pass here e.nativeEvent.selection.end directly to calculateEmojiSuggestion
* because in other case calculateEmojiSuggestion will have an old calculation value
* of suggestion instead of current one
*/
};
useEffect(() => {
calculateEmojiSuggestion(selection.end);
calculateMentionSuggestion(selection.end);
}, [calculateEmojiSuggestion, calculateMentionSuggestion, selection.end]);
``` |
|
@WikusKriek Sorry for the delay in reviews, only web/desktop seems to be working for me, I am unable to build on ios/android.(something is messed up on my end).
Do you think you can push that change in this PR? |
No worries I also had quite a battle with android builds the past few days. I can push that change yes. |
|
@techievivek I applied the new changes, am busy uploading new screen recordings. Still have android left. |
|
@WikusKriek Did you fix the issue with native ios? I can't see that in the screen recording. |
|
Going to pass this to a C+ so they can move this forward. |
| const onSelectionChange = (e) => { | ||
| LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity)); | ||
| setSelection(e.nativeEvent.selection); | ||
| }; |
There was a problem hiding this comment.
useCallback can still be used with empty dependency array
There was a problem hiding this comment.
bump for this minor change
I confirmed fix on iOS as well |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
✋ 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/Beamanator 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/Beamanator in version: 1.3.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
Details
Suggestion list will display when opening chat and typing @ on all platforms except iOS native.
Fixed Issues
$ #25649
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
Same as Test Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Web.2023-08-13.at.17.53.34.mov
Screen.Recording.2023-08-23.at.14.23.49.mov
Mobile Web - Chrome
Android.chrome.2023-08-13.at.17.51.57.mov
Mobile Web - Safari
IOS.safari.2023-08-13.at.16.41.03.mov
Screen.Recording.2023-08-23.at.14.54.50.mov
Desktop
Desktop.2023-08-13.at.17.55.39.mov
iOS
Screen.Recording.2023-08-22.at.13.03.53.mov
Screen.Recording.2023-08-23.at.14.45.23.mov
Android
Android.native.2023-08-13.at.17.46.09.mov