sturoid
sturoid

Reputation: 2721

Emberjs novalidate on form input

I am trying to add the novalidate option to an email form helper (and others) and I can't get it to work. I have tried the following:

  {{input type='email' placeholder='Email' value=email novalidate='novalidate'}}
  {{input type='email' placeholder='Email' value=email novalidate='true'}}
  {{input type='email' placeholder='Email' value=email novalidate}}
  {{input type='email' placeholder='Email' value=email 'novalidate'}}

Is this a tag that is unsupported by ember? Thank you in advance for the help.

Upvotes: 1

Views: 250

Answers (1)

Steve H.
Steve H.

Reputation: 6947

The novalidate attribute belongs on a <form> element, not on an <input>. Besides this, if you want to bind an arbitrary attribute to a TextField, then do this:

Ember.TextField.reopen({
  attributeBindings: ['data-some-attribute']
});

Upvotes: 1

Related Questions