Form.View.Model not reflecting error state
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?