Skip to content
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

BUG: autoscroll does not scroll to the correct element #203

Open
matyasjay opened this issue Mar 1, 2024 · 0 comments
Open

BUG: autoscroll does not scroll to the correct element #203

matyasjay opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@matyasjay
Copy link
Member

Description

Given a multi-field form with several required values. When hitting the submit, the program intermittently scrolls to either the first or second missing field.

Expected Behavior

Always scroll the first required field.

Actual Behavior

The scroll behaviour is intermittent, no consistent way to make sure it is scrolling to the correct field.

Possible Fix

Probably the issue is coming from react-hook-forms third party. Needs investigation if this is fixable by the FormBuilder.

Steps to Reproduce

  1. Create a simple multi field form with required fields
  2. Hit submit to produce errors
  3. Witness intermittent behaviour

Context

The issue was flagged by the client having issues on one of our form pages.

Your Environment

  • Version used: 1.1.1
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Chrome/Safari (version-agnostic)
  • Operating System and version (desktop or mobile): Desktop/Mobile
  • Link to your project: private
@matyasjay matyasjay added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant