JSPM OR Webpack AND Version
none, I'm using AureliaCLI
Browser:
Chrome 51
Language:
TypeScript 1.9
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.
What is the expected behavior?
If source of pattern binding is undefined, aurelia shouldn't set pattern attribute, like required.
The same for minlength and maxlength.
What is the motivation / use case for changing the behavior?
You can build custom inputs elements and enable to set or not validations attributes.
@tolemac commented on Sun Aug 07 2016
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 setspattern="undefined"
and input is always invalid.minlength
andmaxlength
attribute binding sets0
if binding source is null or undefiend.Expected/desired behavior: You can see a demo here: http://plnkr.co/edit/pLIM83?p=preview
required
. The same for minlength and maxlength.