Skip to content
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

Form label animation does not fire on password fields when form is auto filled by the browser. #551

Closed
joearcher opened this issue Jan 29, 2015 · 3 comments

Comments

@joearcher
Copy link

Affecting Linux Chrome Version 40.0.2214.93 (64-bit), Firefox 35.0.1 (64bit)

screenshot

@zippoxer
Copy link

I experience this too when dynamically creating a text input (not just password) with a value.

@Dogfalo
Copy link
Owner

Dogfalo commented Feb 2, 2015

Can you post code, we can't debug it either wise.

@Dogfalo Dogfalo closed this as completed Feb 2, 2015
@quangv
Copy link

quangv commented Apr 23, 2015

i have this problem too, on Chrome 42.0.2311.90 (64-bit) OSX

when you "save password", then go to the login form again.

screenshot

my HTML here: https://jsfiddle.net/uop5rqd7/

for some reason the label for the email field "moves out of the way" after page load, but the one on the password is still obscuring the input field.

if I press any mouse keys or keyboard keys, the password label moves to appropriate spot.


Also I noticed this only happens if I refresh the page. If I access the page via a link, both field labels moves out the way correctly.


I've been experimenting, I am using React, and it might have something to do with the HTML getting re-rendered, and the label active className getting removed aftewards. (Which in React is suppose to happened...)

Also might do to fact that you can't get val() of saved passwords.


fyi, I ended up doing a work-around

  componentDidMount: ->
    setTimeout ->
      if $('#emailField').val()
        $('#passwordField + label').addClass 'active'
    , 900 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants