aurelia / binding

A modern databinding library for JavaScript and HTML.
MIT License
111 stars 96 forks source link

Problem with input validation attribute binding (minlength, maxlength and pattern) #473

Closed tolemac closed 8 years ago

tolemac commented 8 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: pattern attribute binding not work fine. If value is undefined aurelia sets pattern="undefined" and input is always invalid. minlength and maxlength attribute binding sets 0 if binding source is null or undefiend.

Expected/desired behavior: You can see a demo here: http://plnkr.co/edit/pLIM83?p=preview

jdanyow commented 8 years ago

Issue moved to aurelia/validatejs #115 via ZenHub

tolemac commented 8 years ago

I think it isn't related with validations, I don't use validatejs ... I thought it was related with the binding or template-binding but never with validatejs.

Ok, thanks anyway.