A sandbox for experimenting with contextual components and ember-changeset
.
Switch between git branches to view differing implementations.
master branch contains
a repo doing default all-in-one validation that occurs when any changes are made
to any field. In this case, the changeset is invalid
but only shows errors for fields that haven't been touched (isPristine
).
The incremental
validation
branch uses a custom validator function to only validate the currently-focused
field upon onBlur
event. This allows for progressive disclosure of validation
errors.
The incremental-validation-sub-component refactors the date picker into another component that only yields valid dates to its consumer.