Closed kbecciv closed 1 year ago
Triggered auto assignment to @cdraeger11 (AutoAssignerTriage
), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
@cdraeger11 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@cdraeger11 Still overdue 6 days?! Let's take care of this!
@cdraeger11 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
Triggered auto assignment to @MonilBhavsar (Engineering
), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Can't seem to reproduce on Safari web, but can reproduce on iOS simulator
Asked for confirmation on a PR which I think caused this.
Looked at the issue. Tried a few things to see if those fix it but no luck. I will try more tomorrow.
@MonilBhavsar Huh... This is 4 days overdue. Who can take care of this?
Will get back to this
@parasharrajat since this seems like a regression, do you want to give it a try to fix this?
I would be happy to do that but I have been preoccupied with other stuff. I will try to debug this over the weekend and let you know by Monday.
I tried many different approaches to solve the problem. But none of them worked. Basically, the selection length is already 0 so there is no reset. I tried to solve 7798 with a different approach than what I have on the PR but this issue persists.
I suggest exporting this if someone can fix this. My ultimate goal was to keep the spellcheck| autoCorrect behavior and only try to reset the blue highlight.
@MonilBhavsar , any reason this shouldn't be labeled External
?
If it's confirmed to be a regression, let's add it to the RCA list even if we don't know what the offending/root issue or PR is yet.
No reason, adding external label now. I'm not sure if we should add it to RCA list as it's not the breaking anything
Triggered auto assignment to @arielgreen (External
), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (Exported
)
Current assignee @MonilBhavsar is eligible for the Exported assigner, not assigning anyone new.
I believe it's an issue of Safari that we can not fix it on the DOM side.
But if you do need to "fix" this issue, a workaround is disabling the autocorrect
feature.
// File: src/components/Composer/index.js
<RNTextInput
autoComplete="off"
+ autoCorrect={false} // always disable auto correct
+ autoCorrect={isMobileSafari} // or more precisely
placeholderTextColor={themeColors.placeholderText}
ref={el => this.textInput = el}
Thanks for the proposal. But as I said here https://github.com/Expensify/App/issues/8592#issuecomment-1116074045. The ultimate goal should be to fix the issue without disabling autoCorrect.
@parasharrajat I've read your comment before I post the proposal. But I misunderstood that you mean the spellCheck
prop. Spell checking and auto correcting are two different features.
Let's wait a more appropriate solution.
@mananjadhav, @MonilBhavsar, @arielgreen Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Awaiting proposals
Price increased
@mananjadhav Could you please update the RCA doc to add yourself as the leading person? You are C+ here.
@parasharrajat How about doing a blur
on click of send button?
Something like:
this.textInput.blur();
setTimeout(() => this.textInput.focus(), 500);
We can also make this Safari iOS specific.
We never give consider setTimeout
hacks as solutions. But this can be used as last resort.
What is the effect of this change on all platforms? What will be your plan for all the platforms?
@parasharrajat This would be applicable to iOS Safari only. This seems to be a problem with Safari browser itself. We can't really create a fix PR against their repo since it's private.
@parasharrajat Also, do we need to re-focus
after blur? IMO, once the user clicks
send button, the field should just blur. It should not remain in focus.
Yeah, Focus should be remained on the composer after submit. That's what is the main motive.
Price increased
For Safari (web app) it's an issue of Safari that we can not fix on the DOM side (blue background).
To fix the issue in iOS (App) we need to comment out the line setNativeProps in submit() function as we are already clearing the text from the composer after submitting text so applying selection to empty text causes this issue
this.textInput.setNativeProps({selection: {start: 0, end: 0}});
Like this :
this.props.onSubmit(trimmedComment);
this.updateComment(''); // here we are already clearing composer textinput so applying 0 selection below this has no effect
this.setTextInputShouldClear(true);
// Important to reset the selection on Submit action
//this.textInput.setNativeProps({selection: {start: 0, end: 0}}); // comment this line solves problem in iOS (app)
Note: commenting on this line won't affect any other platform as we are already clearing the composer
Device : iPhone 13(App)
@mananjadhav
Current issue from Safari mobile web browser. Because of auto correct text not initializing on Virtual Keyboard when update TextInput.
Add blur on Textinput when submit Add focus on After submit done
@parasharrajat I don't have enough context on this and I can see you've been involved in this one. Would you mind taking up C+ on this one?
Yeah, sure.
@arielgreen Can you please assign @parasharrajat as C+ on this one?
Any feedback for my proposal?
@MTN718 this a duplicate proposal.
So it's not solution for this issue?
📣 @parasharrajat You have been assigned to this job by @MonilBhavsar! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
Assigned Rajat, oh no this is wrong. Please ignore
This is not available to post proposal?
No sorry, my bad. This is open for proposals. But as @parasharrajat mentioned, your proposal seems similar to the one we already received and we don't want to go with that.
Ok But I have tried lots of ways to resolve this issue. But that's the only way to resolve this issue I have tried. :)
hello @parasharrajat @MonilBhavsar can you also review my above proposal thank you
For Safari (web app) it's an issue of Safari that we can not fix on the DOM side (blue background).
@dhairyasenjaliya This issue is mainly focused on fixing the issue on iOS web.
Got it @parasharrajat but have you checked issue in iOS app like mentioned in video i think that might be other bug then this one?
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:
In iOS Settings, Go to General > Keyboard and enable autocorrection
Expected Result:
Compose box should be cleared and empty blue selection shouldn't persist.
Actual Result:
Blue text selection still exist.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.92.0 (Matt A retested 8/26/22)
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): n/a
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/162746866-ab9925a0-99c9-4f8f-b63b-2c0601647649.mp4
https://user-images.githubusercontent.com/93399543/162746890-ad84201d-c88b-4bba-9ae4-7d2210b4f1ef.mp4
Expensify/Expensify Issue URL:
Issue reported by: @metehanozyurt
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1648452635209129
View all open jobs on GitHub