-
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 FOR #23546][$500] mWeb - PDF - When typing password, revealing it and confirm, another attachment is displayed #35197
Comments
Job added to Upwork: https://www.upwork.com/jobs/~014ec322edab15924f |
Triggered auto assignment to @CortneyOfstad ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
We think that this bug might be related to #vip-vsb |
Seems like a side effect of #23546 |
ProposalPlease re-state the problem that we are trying to solve in this issueAnother file is displayed after inputting the password for a password protected pdf file, tapping the reveal password "Eye" then pressing the Confirm. What is the root cause of that problem?I found the culprit, the line which for some weird unknown reason causes this issue, only after tapping the reveal password "Eye" then pressing the Confirm button. It was introduced by this PR #26025 and this is the line: App/src/components/PDFView/PDFPasswordForm.js Lines 145 to 146 in 1439ac0
I know this is not enough to pass as an acceptable RCA since the reason why it's only happening when the reveal password "Eye" is tapped, is still unknown. But since I found a solution to the issue I thought I should mention it 🌞 What changes do you think we should make in order to solve the problem?Removing the line mentioned above fixes the issue but that wound also mean removing the functionality added by the mentioned PR which is: keyboard should stay open (keeping input focused) when clicking the Confirm button. If we really want this fixed even though the full root cause is unknown, and we're fine with not having the "keyboard should stay open" functionality on iOS: mWeb Safari - we can create a library that will target only iOS: mWeb Safari, keeping the PR's functionality for all other platforms while fixing the current issue in Safari. VideosiOS: mWeb Safari
MacOS: Safari
|
Thanks for digging. That did work. Let's see if we can identify the root cause. |
I also had identified the mouseEvent tergerring the wrong image. And after this not making sense identified that initially the correct image did not even op in the video. The mouse event I believe is just a side effect of the original safari bug and the FlatList component |
Indeed, @kidroca already identified a similar issue and raised it here: necolas/react-native-web#2544, more details: #23546 (comment) From the react-native-web issue:
For sure part of the root cause here is related to the FlatList edge case experienced on Safari - the modal's focus trap logic. We just don't know exactly why does the reveal password together with the preventDefault on the onMouseDown of thr Confirm button produces the current issue. I'll try doing some more digging in hopes of finding the root cause of the current issue and possibly get back with a better solution 🚀 |
@c3024 thoughts on the proposals above? Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@c3024 bump on the proposals above? Thanks! |
Thanks for the bump. I'll update in a few hours. |
I think you mean this solution fixes another bug as well. Could you explain this preferably with a video? Thanks. @Sourcecodedeveloper |
In the linked GH, there is discussion around next steps, so going to keep this at weekly until the PR is resolved. |
Bumped the other GH — will continue to keep an eye on things 👍 |
Back from Ooo! Bumped the other GH and requested an update by EOD today. Will follow up here when received 👍 |
Realized I forgot to add the wave/VIP — adjusted this to match the on-hold issue 👍 Bumped the GH again here — Rajat is working to try and recreate under the latest issue, while Peter is continuing to work on a solution that will resolve multiple reported issues under this umbrella of images and attachments displaying incorrectly 👍 |
Peter has found that the issue is affecting web browsers, so fix will be focused there 👍 |
Bumped on the on-hold GH here — will update as soon as I hear back 👍 |
Draft PR created here! |
Reached out for additional guidance/next steps here |
PR is in review now — #39930 |
PR is still in review 👍 |
Bumped a comment on the PR here |
PR is continuing to be reviewed with comments as recent as <2 hours ago 👍 |
PR has been reviewed and should be marked for merging based on the comment here |
We're on a merge freeze until Wednesday, so this will be delayed 👍 |
Merge freeze should end today 🤞 |
Went into product:ion 4 days ago! 😍 |
On hold issue has been resolved/completed, so this can be closed! 🎉 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.32-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4238270
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Pre-requisite: the user must be logged in.
Expected Result:
The password protected PDF should be displayed.
Actual Result:
Another file is displayed.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6355154_1706218295008.Xfnu9744_1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: