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

Form.View.Model not reflecting error state #40

Open
antonlin1 opened this issue Oct 17, 2020 · 0 comments
Open

Form.View.Model not reflecting error state #40

antonlin1 opened this issue Oct 17, 2020 · 0 comments

Comments

@antonlin1
Copy link

antonlin1 commented Oct 17, 2020

Hi,

Form.View.Model does not seem to update state + errorTracking upon an invalid form validation.

I've been trying out this library and enjoy using it a lot. However, I'm unsure of the function of the errorTracking that comes with Form.View.Model? This is to propagate what fields in a form are invalid?

I tried out some of the provided examples, filling them out in an invalid way such that multiple field errors were displayed. However, the state of errorTracking becomes

 { errorTracking = 
      ErrorTracking { showAllErrors = True, showFieldError = Set.fromList [] }
 }

I.e. showAllErrors is switched from False => True but showFieldError remains empty, which seems like unexpected behaviour?

Furthermore the state of the Form.View.Model remains Idle rather than Error. I would have expected the state to be Error?

Am I misunderstanding the intended behaviour of these fields or is there a real bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant