agility icon indicating copy to clipboard operation
agility copied to clipboard

Agility doesn't recognise HTML5 input types

Open colinmacc opened this issue 12 years ago • 1 comments

If you use HTML5, and declare an input tag of type (say) email, Agility will fail to recognise the tag as an input, and will make it a one-way binding, so changes from user input will not be reflected in the model.

The problem here is in the bindings() function, which I have changed to contain the following:

      // <input type="text">, <input>, and <textarea>: 2-way binding
      else if ($node.is('input, textarea')) {

instead of specifying input[text]

Colin.

colinmacc avatar Jun 04 '12 23:06 colinmacc

+1 to this. Suprised Agility still hasn't addressed this issue. I'm trying to use the 'number' input type but agility does not set the value on the input but instead as part of the html.

garygreen avatar Mar 12 '14 16:03 garygreen