-
Notifications
You must be signed in to change notification settings - Fork 555
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
In SSO mode, hide the password input instead of removing it from the DOM #1407
Changes from 2 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 |
---|---|---|
|
@@ -1361,3 +1361,6 @@ tabsHeight = 40px | |
|
||
input[type="button"] | ||
cursor pointer | ||
|
||
.auth0-lock-hidden | ||
display: none |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,6 +179,9 @@ export const hasOneSocialBigButton = hasOneViewFn( | |
'.auth0-lock-social-button.auth0-lock-social-big-button' | ||
); | ||
export const hasPasswordInput = hasInputFn('password'); | ||
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. How is this used? Should it account for the input being hidden? 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. Maybe that's handled by the 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. not sure what you mean 😬 |
||
export const hasHiddenPasswordInput = lock => | ||
hasFn('.auth0-lock-input-block.auth0-lock-input-show-password.auth0-lock-hidden')(lock) && | ||
hasPasswordInput(lock); | ||
export const hasTermsCheckbox = hasFn( | ||
".auth0-lock-sign-up-terms-agreement label input[type='checkbox']" | ||
); | ||
|
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 are you switching from using a
const
? Not a blocker, just curiousThere 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.
the const was a conditional. It was adding/removing the input from the DOM based on that condition. This triggered the bug itself. So, now, it will always have the input, it will only use css to hide the input