-
Notifications
You must be signed in to change notification settings - Fork 206
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
Login autofill optimizations #1481
Conversation
@@ -12,6 +12,8 @@ | |||
<?php $this->beginBody() ?> | |||
<?= $content; ?> | |||
<?php $this->endBody() ?> | |||
<? $this->registerJS('$(window).load(function () {checkInputLabels(); });'); ?> |
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.
checkInputLabels() is already execute in the login.js script.
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.
yes, but we need to run this function in window on load context.
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.
we did, directly inside the login.js
@dev7ch i just cleanup your code and the logic inside your javascript changes makes no sense as the element checking behavior does not require an ID var mail = document.getElementById("login-user-email");
var pass = document.getElementById("login-user-password"); so this makes no sense as And it still does not work |
make sure you have run composer install in the admin and cms modules. |
webkit-autofill and moz-autofill are pretty buggy. For example chrome handles type text and password differently, that's why the password label only floats to the top if you click anywhere on the page - until you do that the password field is considered empty by chrome. |
@nadar ok thanks, composer update inside admin module fixed copmile issue; @marc, ok yes, i ve noticed its kind of pretty buggy. I ll keep this in mind for the future but for now i hope the implementation works a bit more reliable then before( testet in Firefox, Chrom, Opera, Safari - latest). @marc, @nadar is the the floating autofill still not working for you? |
i am not sure, i have to rewrite all your code first.
var mail = document.getElementById("login-user-email");
var pass = document.getElementById("login-user-password");
|
No description provided.