Ismaestro / ngx-scroll-to-first-invalid

Directive to scroll to first invalid form control inside an Angular form on submit

Home Page:https://ismaestro.github.io/ngx-scroll-to-first-invalid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scrolls back to the previously first invalid after correcting input

ux-engineer opened this issue · comments

Just started using this package and noticed that the form scrolls back to the previously first invalid even after I've corrected that input's data.

The library looks for all the invalid inputs (ng-invalid). Check the example here please or provide a repo to reproduce the problem...

Thanks for explanation, got it solved!