-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix for: Chat - New Group - The search box overlays the selected user #14175
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
Conversation
Reviewer Checklist
Screenshots/VideosWeb14175.Web.movMobile Web - Chrome14175.mWeb-Chrome.movMobile Web - Safari14175.mWeb-Safari.movDesktop14175.Desktop.moviOS14175.iOS.movAndroid14175.Android.mov |
|
@Ollyws I think we should add a point where we need to scroll after selecting an account and then clear the search input. The solved issue will be more visible. |
|
@mollfpr In the testing steps you mean? Could you give me an example? Thanks. |
Like this. |
|
@mollfpr Ah yes I see, testing steps updated. |
mollfpr
left a comment
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.
LGTM 👍
All yours @flodnv
flodnv
left a comment
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 great, thanks! 👍
| @@ -108,7 +108,7 @@ class BaseOptionsSelector extends Component { | |||
| focusedIndex: newFocusedIndex, | |||
| }, () => { | |||
| // If we just toggled an option on a multi-selection page, scroll to top | |||
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.
Should we update this comment perhaps?
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.
Ahh yes, we should add more context about the changes.
@Ollyws Can you update the comment there? Thanks!
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.
Good idea, done.
flodnv
left a comment
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.
👌
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to production by @Julesssss in version: 1.2.52-4 🚀
|
| // If we just toggled an option on a multi-selection page, scroll to top | ||
| if (this.props.selectedOptions.length !== prevProps.selectedOptions.length) { | ||
| // If we just toggled an option on a multi-selection page or cleared the search input, scroll to top | ||
| if (this.props.selectedOptions.length !== prevProps.selectedOptions.length || this.props.value === '') { |
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 change caused The scrollbar automatically scrolls to the top when one of contacts update their display name.
As the comment says, this should be called only when search input is cleared.
So we fixed this condition to !!prevProps.value && !this.props.value
Details
Fixed Issues
$ #14001
PROPOSAL: #14001 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.Screenshots/Videos
Web
MacOS_Chrome.mp4
Mobile Web - Chrome
Android_Chrome.mp4
Mobile Web - Safari
iOS_Safari.mp4
Desktop
MacOS_Desktop.mp4
iOS
iOS_Native.mp4
Android
Android_Native.mp4