Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agility doesn't recognise HTML5 input types #82

Open
colinmacc opened this issue Jun 4, 2012 · 1 comment
Open

Agility doesn't recognise HTML5 input types #82

colinmacc opened this issue Jun 4, 2012 · 1 comment

Comments

@colinmacc
Copy link

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.

@garygreen
Copy link

+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants