-
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/23003: Placeholders are overlapping with auto-filled text #24525
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@situchan Could you help to review this PR? I still find a way to enable auto-fill on mobile web, will try to done soon |
Unit test also be failed on the main branch |
@dukenv0307 please pull main |
@situchan Merged main, please help to review |
return; | ||
} | ||
updateLabel(); | ||
}, [updateLabel, inputValue]); |
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.
Why inputValue
is needed in dependency?
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.
@situchan I don't add inputValue in dependency here, I keep it in dependency as before. But IMO, we also need to update the label when inputValue changed
Co-authored-by: Situ Chandra Shil <[email protected]>
Found regression: label is not activated first time even though focused (for test, you should not have any autofill on browser or enable Screen.Recording.2023-08-15.at.8.09.58.PM.mov |
@dukenv0307 are you investigating? |
Thanks for your comment, I am still checking, I will ping you when I finish my investigating |
@situchan I agree with RC you pointed out. Looking for solution |
@situchan The root cause is that we only use runAfterInteractions() in the first render. So I suggest that we should always use runAfterInteractions instead of only the first time |
yes but as this is general component, it will apply to all inputs throughout the app where runAfterInteractions is not needed at all |
@situchan We can use accessibilityLabel props or label props to know that it is login form and then use runAfterInteractions like this
What do you think about this way? |
That's an intelligent idea. You think it's better than introducing new prop? |
As this is tricky, I think we can fix only original issue without |
@francoisl bump above comment: #24525 (comment) |
An alternative would be to introduce a new boolean prop such as If that's not an option, then yes I'd say let's just fix the original issue without using |
I am 👍 on this. If we land on this, below needs to be removed from Tests step
|
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
For crash safe, let's add App/src/libs/isInputAutoFilled.js Line 9 in 6e055d0
|
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
@francoisl all yours
@francoisl looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Tests were passing, I think this is a bug with melvin. |
✋ 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/francoisl in version: 1.3.56-0 🚀
|
@dukenv0307 Can you update the steps? What link are we visiting? need more details to QA |
It's just app start link |
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
Details
Placeholders are overlapping with auto-filled text. We need to update the state of label after running animation to fix that
Fixed Issues
$ #23003
PROPOSAL: #23003 (comment)
Tests
Offline tests
NA
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-08-17.at.12.01.30.mp4
Mobile Web - Chrome
Screenrecording_20230816_160417.mp4
Mobile Web - Safari
Screen.Recording.2023-08-16.at.15.56.03.mp4
Desktop
This PR is only visible on web
iOS
This PR is only visible on webAndroid
This PR is only visible on web