Skip to content

Releases: maestrooo/ember-cli-html5-validation

v0.2.4

15 Aug 16:14
0.2.4
Compare
Choose a tag to compare
  • Fixed a bug where the ValidatableInput mixin reseted the setCustomValidity to valid, which prevented the form to be considered as invalid if one input was manually set to invalid. The end-user is now responsible to reset the input to a valid state by calling setCustomValidity('') whenever the value is valid.

v0.2.3

05 Jun 18:54
0.2.3
Compare
Choose a tag to compare
  • When submitting a form that contains error, it now scrolls to the first error of the form.

v0.2.2

13 May 12:57
0.2.2
Compare
Choose a tag to compare
  • Fix deployment bug in previous version

v0.2.1

13 May 12:49
0.2.1
Compare
Choose a tag to compare
  • Update dependencies

v0.2.0

23 Mar 16:44
0.2.0
Compare
Choose a tag to compare
  • When using validatable-form component, you now need to set the target of submit button to the form component and explicitly set an action.

Before:

{{#validatable-form onSubmit=(action 'saveUser') as |form|}}
  <input type="submit" value="Submit form">
{{/validatable-form}}

After:

{{#validatable-form onSubmit=(action 'saveUser') as |form|}}
  <input {{action 'submit' target=form}} value="Submit form">
{{/validatable-form}}

This actually brings one major advantage: you can now have multiple actions within your form. For instance, if you have on "save" and "saveAndActivate" buttons, you can do so:

{{#validatable-form onPrimary=(action 'saveAndActivateUser') onSecondary=(action 'saveUser') as |form|}}
  <input {{action 'submit' 'onSecondary' target=form}} value="Save">
  <input {{action 'submit' 'onPrimary' target=form}} value="Save and activate">
{{/validatable-form}}

v0.1.5

13 Mar 22:39
0.1.5
Compare
Choose a tag to compare
  • Move templates to addon to better respect structure.

v0.1.4

13 Mar 22:40
0.1.4
Compare
Choose a tag to compare
Tag 0.1.4

v0.1.3

11 Mar 18:59
0.1.3
Compare
Choose a tag to compare
  • OHH finally it's working... I'm having a hard time understand how add-ons work...

v0.1.2

11 Mar 18:58
0.1.2
Compare
Choose a tag to compare
  • Add missing files

v0.1.1

11 Mar 18:58
0.1.1
Compare
Choose a tag to compare
  • Add missing file