-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix tolerance for null or undefined values #1529
Conversation
Was this causing an actual issue? (Thinking in terms of if we can add a test for this somehow..) |
I did this a while ago but yes I believe it was causing the directive to break. I think a test would just need to give a null/undefined value for the model. |
@homerjam can you add one and then I can merge in? It's best for them to be part of the same commit, ideally. |
Sure. I'll definitely give it a go |
Squashed commits: [db9971e] Add test for null/undefined values
@homerjam just to confirm, these test fail without your change right? |
Those tests currently pass without the changeset from the PR. |
Ah yes I meant to to say. I think this fix may have been to make sure the
|
Will close for now, it looks a bit silly admittedly but there's no need to introduce unnecessary change at the risk of breaking something else. Maybe that section will refactored at some point in the future, anyway. If anyone finds a need for this change please update with details and we can look at reopening this. |
Originally authored by homerjam Closes angular-ui#967 and angular-ui#1686 Supersedes angular-ui#1035 angular-ui#1529 angular-ui#1687
Previously view value was checked and corrected if undefined, but then overwritten with the invalid value again. This is a minor commit to ensure the updated value isn't overwritten again. Originally authored by homerjam Closes angular-ui#967 and angular-ui#1686 Supersedes angular-ui#1035 angular-ui#1529 angular-ui#1687
Re-pull of #1035