-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
If you edit a recently sent DM by pressing up on keyboard or hovering > edit comment, the focus is on the beginning of the message #3218
Comments
Triggered auto assignment to @tylerkaraszewski ( |
Confirmed this in the mac desktop client. If the reproduction steps are unclear, all you need to do is click the "pencil" icon over a message you sent to edit it. |
Taking a leap of faith this can be worked on by a contributor and assigning the External label. Also added steps in OP to address the issue of the 'up arrow to edit' placing the cursor at the beginning of the previous message |
Triggered auto assignment to @michaelhaxhiu ( |
I'll assume it's just a matter of time until the upwork job is posted, so I'll proceed to write my proposal. From my prior experience I can tell that for this kind of task one would normally use TextInput's selection prop. As it is mentioned in the docs, you can supply same values for So solution should be as simple as adding selection={{start: -1, end: -1}} to list of props passed here |
Did a quick test and it seems to work as one might expect with both "press pencil - " and "press up arrow - " to edit cases, since the same component is used for both. 2021-06-04.19-04-16.mp4 |
PROPOSAL
and pass in this component
Thanks NOTE: I added selection state because I need to show correct cursor point on add emoji( there was an issue on safari browser on add emoji) |
Yeah, hats off to you, @aliabbasmalik8 . I've just checked and the |
Posting this job shortly! Please hang tight and a member of our engineering team will help with next steps in terms of vetting the proposals. |
Triggered auto assignment to @deetergp ( |
hey @deetergp - quick update:
@aliabbasmalik8 - can you please apply for the job on upwork here? |
@aliabbasmalik8
|
Payment will be sent in 7 days to allow for regressions to surface and be fixed. |
Payment sent. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Focus should be on the end of the message
Actual Result:
Focus is on the beginning of the message.
Action Performed:
or
Workaround:
Users can manually set the focus where it's needed.
Platform:
Where is this issue occurring?
Web ✔️
iOS
Android
Desktop App ✔️
Mobile Web
Version Number: 1.0.62-0 (1.0.62-0)
Notes/Photos/Videos:
Important note: If you right click and use the edit comment option it does not have the same behaviour. To get this behaviour you have to use the hover action menu. Right-click has another issue here
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/166576
Upwork Job URL https://www.upwork.com/jobs/~0107b705b762cb168d
View all open jobs on Upwork
From @aliabbasmalik8 https://expensify.slack.com/archives/C01GTK53T8Q/p1622188890359100
The text was updated successfully, but these errors were encountered: