ui-mask icon indicating copy to clipboard operation
ui-mask copied to clipboard

If ngModel is zero on load then viewModel is set to empty string

Open whyld4900 opened this issue 9 years ago • 3 comments

Doing "value || ''" is causing me issues when I set the ngModel programmatically to zero. Really need a specific check for null or undefined, I think. I'm not sure if this is the right place for the check: nguimaskissue1

whyld4900 avatar Sep 15 '16 18:09 whyld4900

I already tried arguing this in #166

Thrilleratplay avatar Jan 10 '17 19:01 Thrilleratplay

Here is example of the problem:

https://plnkr.co/edit/xu3G1m?p=preview

whyld4900 avatar Jan 11 '17 17:01 whyld4900

I believe this is also related to #202 however I'm not sure if I agree with the fix. There are a number of other impossible possible falsy values beyond null and undefined

Thrilleratplay avatar Jan 11 '17 18:01 Thrilleratplay