nova-scroll-top
nova-scroll-top copied to clipboard
Scroll to first error is too low if it's the first field
Hi,
thanks for the package.
It's really a shame that this is not a core feature of nova...
error It scrolles up, but stays right below the error, so that it's just outside of the viewport.
So close and yet so far.
Is this easily fixable?


I think my PR #6 fixed this, but it hasn't been tagged yet (#8 ).
This is is now supported natively
I saw your comment on, but I don't see any issues with their implementation, yet. Could you explain the problem in more detail?
@jonasbrenig If you are talking about the latest Nova update about validation and scrolling. Based on the code changes, it appears to be that on a validation error the form will scroll all the way to the top instead of to a specific error message. This means that a user is sent all the way to the top of the form page instead of a IMHO more friendly specific field. I haven't had a chance to specifically test Nova, but without this package, it's just a sort of bad way to handle validation errors when the errors are shown per field and not at the top.
Ah, I see. I just tested this and indeed you are right, it just scrolls back up to the top instead of to the first field with errors. Maybe you can bring this to David's attention?
I can potentially put in an issue, but it'll likely be deemed a feature request rather than a bug as so many "features" (aka bugs) have in the past.