I'm finding it hard to come up with creative titles for all these issues that are similar but different. This is sort of a combination of #461918: User Login Browser Auto-populate and #903122: Autofill can cause both password field value and password field label to appear concurrently. - caused by the former but related to the latter.

Anyway the expression if ($field != document.activeElement) is always true (in Firefox at least) because $field is a collection and document.activeElement is an object. This means that in Firefox when you focus a compact form field the label fades out but fades back in immediately after. The solution is to test $field[0]

CommentFileSizeAuthor
compact_forms_chromefix.patch692 bytesmstrelan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mstrelan’s picture

Priority: Major » Minor

This isn't actually major unless you're mucking around with additional code that I forgot I was testing out, so it was really an accident that I found this logic error.

sun’s picture

Priority: Minor » Normal
Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.