-
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
[HOLD for payment 2024-12-11] [$250] Web - Search - Text in search field does not move to the end by default to show text cursor #52599
Comments
Triggered auto assignment to @jliexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const scrollToRight: ScrollToBottom = (input) => {
if (!('scrollLeft' in input)) {
return;
}
// Scroll to the far right
input.scrollLeft = input.scrollWidth; // Can use input.setSelectionRange(length, input.value.length) as well.
}; that will scroll to the far right.
will be: <TextInput ref={ref} ...
const shouldScrollRef = useRef(false);
const searchRouterInputRef = useRef(null);
// Trigger scrollToRight when input value changes and shouldScroll is true
useEffect(() => {
if (shouldScrollRef.current) {
scrollToRight(searchRouterInputRef?.current);
shouldScrollRef.current = false;
}
}, [debouncedInputValue]); This logic will call the
const onSearchChange = useCallback(
(userQuery: string, autoScrollToRight = false) => {
if (autoScrollToRight) {
shouldScrollRef.current = true;
} and in:
call What alternative solutions did you explore? (Optional) |
@lanitochka17 can you clarify what you mean exactly by this:
Are you saying that any report with a long report title will cause this issue? Do you have any idea of a character limit that will cause this issue? Or are you referring to just long emails? |
@jliexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Waiting on @lanitochka17 |
@jliexpensify I think not only long emails but also reports. |
@lanitochka17 can you retest on v64-0? I can't reproduce this one consistently |
Issue is still reproduce 20241119_213132.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~021859033501841956761 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
I think this is a #retain issue, since it deals with an annoyance for our current customers. |
Looks like @daledah's proposal would work. But I want to confirm if we really want it to be fixed. 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Yeah I think this is worth fixing, especially since people keep reporting it ^ haha. Go for it, @daledah! |
📣 @daledah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@mananjadhav PR is ready. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.70-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-12-11. 🎊 For reference, here are some details about the assignees on this issue:
|
@mananjadhav @jliexpensify @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment Summary
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Paid and job closed, @mananjadhav here is the payment summary. |
$250 approved for @mananjadhav |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.62-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The text in the search field will move to the end to show the text cursor
Actual Result:
The text in the search field does not move to the end. The text cursor is hidden and user has to scroll to the right to see the text cursor
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6665705_1731613839444.20241115_034031.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jliexpensifyThe text was updated successfully, but these errors were encountered: