AmpersandJS / ampersand-input-view

A view module for intelligently rendering and validating input. Works well with ampersand-form-view.
MIT License
17 stars 19 forks source link

uncache valid property #49

Closed wraithgar closed 9 years ago

wraithgar commented 9 years ago

Consider a form input whose valid state is dependent upon the values of other inputs in its parent form element. Currently, there is no way for the derived valid property to be set differently based on anything other than an actual change to the inputValue itself.

With this small change one can at least rely on the re-running of the tests on form submission to catch these cases. I'm not sure this is the perfect solution and am open to discussion about other ways to better handle this use case, it is one I have encountered in production already.

kamilogorek commented 9 years ago

Looks reasonable + valid tests. +1

lukekarrys commented 9 years ago

Yep, reasonable use case and the current behavior would be unexpected. +1

wraithgar commented 9 years ago

v4.0.1