-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix keyboard flickering and bad typing behavior while typing password in revealed state for a protected PDF #55130
Conversation
Replaced `getSecureEntryKeyboardType` with direct use of `inputProps.keyboardType` to resolve conflicts between `secureTextEntry` and `keyboardType="visible-password"`
Removed the Android native getSecureTextEntry method as it no longer needed
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA. |
recheck |
@jjcoffee I have made the changes. Now, this PR is ready for review :) |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2025-01-13_11.48.11.mp4Android: mWeb Chromeandroid-chrome-2025-01-13_11.49.45.mp4iOS: Nativeios-app-2025-01-13_14.13.41.mp4iOS: mWeb SafariMacOS: Chrome / Safaridesktop-chrome-2025-01-13_11.30.38.mp4MacOS: Desktopdesktop-app-2025-01-13_11.33.38.mp4 |
@rohit9625 Did you have any issues getting the password-protected PDF to show up on iOS Safari? I just get an endless spinner (it's not an issue with your PR since the same happens on staging and on main). |
I didn't tried opening the PDF with correct password on IOS Safari. |
@rohit9625 That would be useful, but I'm also asking on Slack. It seems to be happening on production too, which is strange! I'm using iOS 17.2 (also tried with iOS 17.0) and iPhone 15 Pro Max. |
Okay, let me know if I can do something. Thanks 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! The issue I mentioned is limited to iOS 17.2 and not related to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
eslint failures do not look related - asked here: https://expensify.slack.com/archives/C01GTK53T8Q/p1736809645567419 |
Why are the performance tests failing? All unit tests passed locally.
|
It looks like there merge conflicts in the submodule? AFAIK you didn't change that here 🤔 Try merging main, and if that doesn't work, try asking for help via the usual channels |
I have merged the main branch using GitKraken @rafecolton. I didn't sign the merge commit. Should I |
|
Oh no sorry, I misread. Do please sign your commit 🙏 |
fe19a42
to
76ecceb
Compare
Okay, Thanks :) |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.0.85-0 🚀
|
3 similar comments
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.0.85-0 🚀
|
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.0.85-0 🚀
|
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.0.85-0 🚀
|
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.0.85-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.85-4 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.85-4 🚀
|
Explanation of Change
Typing was not smooth while typing the password in the revealed state for protected PDFs. The reason was that the rapidly changing keyboard caused the keyboard to flicker when the password was revealed.
I've removed the
getSecureEntryKeyboardType
method for native Android, which was forcingkeyboard-type='visible-password'
, which causes the keyboard to flicker.Fixed Issues
$ #53394
PROPOSAL: $ #53394 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
TestOnAndroidApp.mp4
Android: mWeb Chrome
TestOnAndroidChrome.mp4
iOS: Native
TestOnIOSApp.mov
iOS: mWeb Safari
TestOnSafariIOS.1.mov
MacOS: Chrome / Safari
TestOnMacSafari.mov
MacOS: Desktop
TestOnMacDesktopApp.mov