You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-07-17] [$1000] Web- Eye icon position not aligned and nothing happen on click of eye icon #22183
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Eye icon position not aligned and nothing happen on click of eye icon
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.36-2 Reproducible in staging?: n/a Reproducible in production?: n/a If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
Nothing happens on clicking of eye icon since we are calling the setPasswordHidden in togglePasswordVisibility in the wrong way. prevState is not an object but is instead the current value of passwordHidden.
For fixing the click behaviour of eye icon, we need to call setPasswordHidden in the correct way in togglePasswordVisibility by not using prevState.passwordHidden and directly using prevState -
changed the title [-]Dev: Eye icon position not aligned and nothing happen on click of eye icon[/-][+]Web- Eye icon position not aligned and nothing happen on click of eye icon[/+]on Jul 6, 2023
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 4, 2023
Triggered auto assignment to @michaelhaxhiu (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 4, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Nikhil-Vats commentedon Jul 4, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Eye icon position is not aligned and nothing happens on click of eye icon in password protected PDF form.
What is the root cause of that problem?
styles.flex1was removed from the container of eye icon in this PR which is why the icon is not in center anymore.App/src/components/TextInput/BaseTextInput.js
Lines 348 to 360 in 3e0d7dd
Nothing happens on clicking of eye icon since we are calling the
setPasswordHiddenintogglePasswordVisibilityin the wrong way.prevStateis not an object but is instead the current value ofpasswordHidden.App/src/components/TextInput/BaseTextInput.js
Lines 220 to 222 in 3e0d7dd
What changes do you think we should make in order to solve the problem?
We need to add
styles.flex1again in line 350 -For fixing the click behaviour of eye icon, we need to call
setPasswordHiddenin the correct way intogglePasswordVisibilityby not usingprevState.passwordHiddenand directly usingprevState-We need to simply call it like -
We can change the name of variable
prevStateto something else for better understanding.What alternative solutions did you explore? (Optional)
NA
Result -
Screen.Recording.2023-07-04.at.8.50.55.PM.mov
Nikhil-Vats commentedon Jul 4, 2023
This is a regression from #20186.
[-]Dev: Eye icon position not aligned and nothing happen on click of eye icon[/-][+]Web- Eye icon position not aligned and nothing happen on click of eye icon[/+]60 remaining items
Santhosh-Sellavel commentedon Jul 17, 2023
@michaelhaxhiu I will collect via ND
Santhosh-Sellavel commentedon Jul 17, 2023
@Julesssss This qualifies for Bonus too right?
michaelhaxhiu commentedon Jul 18, 2023
@Santhosh-Sellavel yep just checked as part of the BZ payment step, and you are correct.
Let's do payments now!
michaelhaxhiu commentedon Jul 18, 2023
Payments:
michaelhaxhiu commentedon Jul 18, 2023
@Santhosh-Sellavel will you require payment via newdot?
Nikhil-Vats commentedon Jul 18, 2023
Offer accepted @michaelhaxhiu.
michaelhaxhiu commentedon Jul 18, 2023
2/3 paid. Just waiting for Santhosh to confirm if he's gonna get paid via upwork or newdot.
Santhosh-Sellavel commentedon Jul 18, 2023
@michaelhaxhiu I will let you know here once done!
michaelhaxhiu commentedon Jul 18, 2023
Please do!
michaelhaxhiu commentedon Jul 18, 2023
I'll check your box last
Santhosh-Sellavel commentedon Jul 20, 2023
Requested on ND
michaelhaxhiu commentedon Jul 20, 2023
Perfect
anmurali commentedon Jul 23, 2023
Approved $1500 to Santhosh based on #22183 (comment)