-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix wrong placeholder alignment and broken autofill #31044
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -221,7 +221,6 @@ function LoginForm(props) { | |
ref={input} | ||
label={translate('loginForm.phoneOrEmail')} | ||
accessibilityLabel={translate('loginForm.phoneOrEmail')} | ||
role={CONST.ACCESSIBILITY_ROLE.TEXT} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bernhardoj as you reproduced autofill issue, can you double confirm that removing this line fixes it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @situchan I am able to reproduce, and yes it will fix it. Before Screen.Recording.2023-11-08.at.11.11.11.AM.movAfter Screen.Recording.2023-11-08.at.11.13.06.AM.movThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like you're using autofill extension. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @situchan it is the default chrome browser autofill, the manage option will redirect you to chrome://settings/autofill There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I can confirm it fixes the issue. |
||
value={login} | ||
returnKeyType="go" | ||
autoCompleteType="username" | ||
|
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.
textAlignVertical
prop is deprecated. There are still 2 usages in latest main. Let's replace them as wellThere 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.
@aimane-chnaif replacing them caused this issue, they're not accurately replacement, i will check if there is any other option.
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.
I replaced
textAlignVertical="top"
withstyles.verticalAlignTop
before, i just reverted that here.Uh oh!
There was an error while loading. Please reload this page.
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.
If it's not exact replacement, there should be issue created in upstream. I doubt the maintainers wrote document even without testing.
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.
@aimane-chnaif it's not working for our case, it should be working correctly after the replacement but it's not. the only other option is to remove
styles.verticalAlignTop
and do not add the prop.