-
Notifications
You must be signed in to change notification settings - Fork 3k
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: pre-validate masked input #56462
base: main
Are you sure you want to change the base?
fix: pre-validate masked input #56462
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@brunovjk would you mind to test these changes? As a reference I took existing web input behavior and tried to match that on all platforms 👀 I also update |
This comment was marked as outdated.
This comment was marked as outdated.
Great work @kirillzyusko it's much better now, but I can't leave the field blank, without any digits: Screen.Recording.2025-02-06.at.10.39.42.mov |
Very good @kirillzyusko Android: Native56462_android_native.moviOS: Native56462_ios_native.movsorry for the inconvenience, but there is a detail that is bothering me, on the web (I was able to reproduce it with less reliability in native as well), when typing a letter, the "cursor" moves: Screen.Recording.2025-02-06.at.12.17.02.movWhat do you think? Thank you. |
What is the expected behavior? To move cursor to the end (as it is in current web implementation)? |
When typing letters, I believe nothing should happen. We can confirm with luacmartins |
I think on web it always go to the end in case if invalid character has been typed (i. e. including letters) 🤔 |
Great! I'll finish the tests and checklist later, but everything looks good so far. |
Reviewer Checklist
Screenshots/VideosAndroid: Native56462_android_native.movAndroid: mWeb Chrome56462_android_web.moviOS: Native56462_ios_native.moviOS: mWeb Safari56462_ios_web.movMacOS: Chrome / Safari56462_web_chrome.movMacOS: Desktop56462_web_desktop.mov |
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.
Everything looks fine to me, please just pay attention to these comments comment_1 comment_2. @kirillzyusko could you please complete your checklist? Thanks a lot.
Explanation of Change
Fixed Issues
$ #56330
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop