-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 react-native 25643] [$1000] IOU - Correct digit is not getting deleted in IOU request reported by @daraksha-dk #12298
Comments
Triggered auto assignment to @greg-schroeder ( |
Triggered auto assignment to @tgolen ( |
Triggered auto assignment to @lschurr ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Sounds like a legit bug. Pushing this to |
Current assignee @tgolen is eligible for the External assigner, not assigning anyone new. |
@kavimuru I'm trying to tackle this but I'm not able to reproduce this. I tried reproducing with the Brave and Chrome browsers. What browser are you using? |
@AndreasBBS It happens only in Android - Firefox browser |
I've investigated the issue a bit and here are my findings so far:
Proposal My proposal is that this bug needs to be solved at the react-native library level. React-native should trigger the events in the same way regardless if it's Firefox or Chrome and I defend that this should be the approach to fix instead of changing the code of this App. The App code does the correct thing and when the events are triggered correctly, as is the case in Chrome, the correct behavior is observed. |
@Santhosh-Sellavel - could you review this proposal? |
@AndreasBBS Have you checked on the react-native issues is there any related bugs? |
Bumped back to daily per our new BugZero process, internal Slack thread with deets |
@Santhosh-Sellavel I've checked both the react-native and react-native-web issues and didn't find anything relating to this bug. Because this is a browser bug I opened an issue in the react-native-web repo, you can find it here necolas/react-native-web#2422 You can also find a codesandbox there that illustrates the bug. I looked into the react-native-web source and I couldn't really come up with a solution for this bug. I'm hoping that dialogue in the issue I created there might lead to some better solutions. I also think that this possible needs to be solved at the Firefox engine level because the native event in react-native-web is just the events that come from the browser and Firefox does not seem to fire the events correctly in this dragging cursor case. I'll wait for some replies in the react-native-web issue I created but I suspect this might prove to be a symptom of Firefox engine... I'd love if you could try the codebox example I left on the react-native-web issue and give me your thoughts. This seems to me to be an issue outside of the scope of this app and fixes at lower lever libraries probably will require a higher insensitive than $250. |
Thanks again, I've checked out codesandbox. The issue is occurring at my end as well on the Firefox browser. Screen_Recording_20221107-011158_Firefox.mp4Let's wait for some response from react-native-web libraries as well, but the issue seems to be at from firefox engine level. Regarding incentives, if we have a clear path toward a solution, we could definitely discuss it. Read this as we stated,
|
I've found this as well and I'm gonna drop it here cause it might be useful to somebody trying to tackle this issue: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionchange_event The example in the link works on Firefox for Android but it does not work in Chrome for Android. (In fact doesn't work in Chrome for desktop either, only Firefox) It seems to me that Chrome and Firefox deal with this selection feature differently and react-native-web is defaulting to Chrome's solution... |
Update: I've investigated further and I discovered that this bug is something that extends to the react package. react-native-web uses react's input onSelect for the TextInput onSelectionChange handler. I closed the issue on react-native-web and opened a new one on react's repository: facebook/react#25643 |
Just clarifying @AndreasBBS - this GH needs to be on hold until the other you mentioned is fixed right? |
Yes, right. I'm not getting a lot of feedback on that issue and it seems to me that issues in that repo take a while to be addressed. I've been trying to fix it myself but react source is dense and I rarely have to work at this level, I'm enjoying the challenge though. If you know anyone that's familiar with working on the react source code that can give me some guidance I'd highly appreciate if you could connect me with. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel! Join our slack channel, and post help anyone can offer help! |
Price doubled - https://www.upwork.com/jobs/~01cdae73aeb040edd9 |
Issue not reproducible during KI retests. (First week) |
Hey @Santhosh-Sellavel - Does this have relevant proposals? Is the PR that @AndreasBBS put up related? |
No Its not related! |
We have some investigation, but not a complete proposal! |
Great, going to double the price. |
@tgolen this is one of the oldest issues in the /App repo. To help us clear out the large backlog of bugs, can you:
|
Considering that this doesn't impact any of our supported platforms, I am going to close this out. There is an upstream fix in react-native that @AndreasBBS opened, and I think it's still good to pursue that, and I think closing this in the meantime is the right move. |
I actually moved the upstream fix to react itself once I realized the bug is originating from that package and not react-native. You can follow the issue here: facebook/react#25643 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Deletion should happen from where the cursor is
Actual Result:
only the initial position is getting lost (it will delete 3)
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.21-4
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
az_recorder_20221031_100651.1.mp4
cursor_issue.mp4
Expensify/Expensify Issue URL:
Issue reported by: @daraksha-dk
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1667200193320029
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: