-
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: Web - Members page search bar does not get focused #27497
Conversation
Reviewer Checklist
Screenshots/VideosWebchrome-desktop-2023-09-28_17.52.33.mp4Mobile Web - ChromeUploading android-chrome-new.mp4… Mobile Web - Safariios-safari-2023-09-28_17.48.25.mp4Desktopmac-desktop-2023-09-28_17.51.48.mp4iOSios-native-2023-09-28_17.49.10.mp4Androidandroid-native.mp4 |
@dukenv0307 Why don't the test steps match the original issue which was triggered when removing members? |
@@ -169,6 +169,7 @@ function BaseSelectionList({ | |||
}; | |||
|
|||
const selectRow = (item, index) => { | |||
textInputRef.current.focus(); |
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.
Can we guarantee that textInputRef.current
will always be available in this component?
@jjcoffee I believe that isn't expected when refocusing after removing members because the remove button doesn't in |
@dukenv0307 So you're saying you haven't fixed the issue? |
@jjcoffee In the past when we didn't use |
@jjcoffee Any thoughts on this comment #27497 (comment)? If it is really the bug I will update the PR to fix this. |
@dukenv0307 I can't see any reason why we wouldn't want to refocus the input after deleting a member, just like we do after inviting a member (i.e. the second case in the linked issue that was already fixed), so that's the fix we're looking for here (you can revert your other fix if it doesn't handle this issue). |
@jjcoffee I updated the test step, code, and screenshot. Please help to review again. |
@dukenv0307 Thanks! Is there a more generic solution here that refocuses when the delete confirmation modal closes? Ideally we'd refocus when tapping Cancel too. |
@jjcoffee Update to refocus whenever the modal is closed and tested it. |
Having Android build issues unfortunately, so will have to finish reviewing tomorrow! |
@dukenv0307 Can you remove the input focus on every selection? It feels really janky to me on native devices to have the keyboard popping up every time I tick a user. Unless we have an open issue stating it as unexpected behaviour, I don't think it's worth "fixing" here. |
@jjcoffee I think we can add a prop |
@dukenv0307 Okay that makes sense to me, let's do it! |
@jjcoffee I just updated. |
@dukenv0307 The branch has conflicts. |
@dukenv0307 Could you also update test step 3 to include that it won't happen on mobile? |
@jjcoffee Updated. |
@dukenv0307 Thanks! Looks like lint is failing now 😅 |
Just fix lint after merging main. |
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!
✋ 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/jasperhuangg in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
Fixed Issues
$ #26955
PROPOSAL: #26955 (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 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
Screen.Recording.2023-09-27.at.17.53.34.mov
Mobile Web - Chrome
Record_2023-09-27-17-54-48.mp4
Mobile Web - Safari
Screen.Recording.2023-09-27.at.17.57.37.mov
Desktop
Screen.Recording.2023-09-27.at.18.08.14.mov
iOS
Screen.Recording.2023-09-27.at.17.59.19.mov
Android
Screen.Recording.2023-09-27.at.18.03.52.mov