Closed jjczopek closed 8 years ago
While all tests are passing, when I look at the demo page, It's not working as expected for some scenarios (with the underline 'uif-underlined' view & label) & I'm seeing a lot of console errors:
angular.js:13920 TypeError: Cannot read property '$setDirty' of null
at m.scope.inputChange (textFieldDirective.ts:89)
Can you take a look at this before we merge it in?
@ac: yeah, on input change I forgot to add a check whether ngModel is actually present thus the errors. Expect fix in couple of minutes.
Added support for
ngModel.$dity
&ngModel.$touched
foruif-textfield
.Added support for
$dirty
&$touched
properties onuif-textfield
by hooking into underlying input element events. This improves experience of usinguif-textfield
with forms.Closes #367