-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
After Submit -> Scroll Offset if error in a field #1309
Comments
This seems like a very valid use case for an additional feature/setting. |
Hi Marc, this would really be nice. I am wondering why there is not more feedback on this. I cannot image that I am the only one facing this problem !?!?!? In the menatime, I solved this problem with the following additional line in parsley.js
Would be great if there is something from your site, as this is maybe not good coded stuff. Regard, |
Hello, we're having the same problem. We are using a fixed header on our site. When an input field ist behind the fixed header, parsley does not recognize that this element is not visible for the user and therefore focus it just behind the header. But if this input field is outside the window view then parsley focus the input field centered in the viewport. I am not quite sure how parsley determines if an input field is outside the viewport. But a possible solution might be a custom viewport element for the determination instead of the default window viewport. Let me know what you think. Kind Regards, |
Hi, Regards, TJ |
Is there an update for this? |
@4ndre4s No PR so far |
Hi,
my page does have a fixed header.
Therefore, when there is a wrong entry in a field of the form or a mandatory field not filled, page scrolls to the first field with an error.
Unfortunately, this field is covered by my fixed header and therefore not visible.
Is there a way to change this with some kind of offset to this scroll function?
Please let me know if you have any idea.
BR
Jürgen
The text was updated successfully, but these errors were encountered: