Fixes #6467: `ActiveForm` will scroll to the nearest visible element when the first error input is hidden