Skip to content

v2.41.0

Latest
Compare
Choose a tag to compare
@joegaudet joegaudet released this 01 Mar 01:31
· 21 commits to master since this release

A few new features around using ember-model-validator

  • Default implementation for validationOptions is set to the {only: []} where only is the collection of fields that are defined in the form, this prevents an issue where a form might not expose a control for a particular attribute on a model, and thus, not provide a place for an error to show up.
  • Default implementation for the required attribute on fields, which now draws it's out of the box value from the validation hash on the model if present.
  • If a field is set to required, and either the form or environment is configured correctly, it will automatically add a requiredText to the label.