When the first element in a form is set to display: none (in my case fivestar module does this) and client-side validation is enabled for that field. The "Scroll to error message"-feature doesn't scroll to the correct position of the field.

CommentFileSizeAuthor
#2 2737525-1.patch1.27 KBgeertvd

Comments

geertvd created an issue. See original summary.

geertvd’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

Attached patch temporarily displays the field to find out it's position and hides it afterwards. I'm also setting visibility: hidden and position: absolute to avoid any blipping or jumping effect in some older browsers.

  • Jelle_S committed b3d83e6 on 7.x-1.x authored by geertvd
    Issue #2737525 by geertvd: "Scroll to error message"-feature doesn't...
jelle_s’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Fixed in 7.x-1.x-dev. Thanks for the patch!

jelle_s’s picture

Status: Needs review » Needs work