-
Notifications
You must be signed in to change notification settings - Fork 3k
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 for: Chat - New Group - The search box overlays the selected user #14175
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. |
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
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.
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 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.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