Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Fix tolerance for null or undefined values #1529

Closed
wants to merge 1 commit into from

Conversation

homerjam
Copy link
Contributor

Re-pull of #1035

@user378230
Copy link
Contributor

Was this causing an actual issue? (Thinking in terms of if we can add a test for this somehow..)

@homerjam
Copy link
Contributor Author

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.

@user378230
Copy link
Contributor

@homerjam can you add one and then I can merge in? It's best for them to be part of the same commit, ideally.

@homerjam
Copy link
Contributor Author

Sure. I'll definitely give it a go

Squashed commits:
[db9971e] Add test for null/undefined values
@user378230
Copy link
Contributor

@homerjam just to confirm, these test fail without your change right?

@wesleycho
Copy link
Contributor

Those tests currently pass without the changeset from the PR.

@homerjam
Copy link
Contributor Author

homerjam commented Apr 6, 2016

Ah yes I meant to to say. I think this fix may have been to make sure the
placeholder text appeared on a null/undefined value (or something like
that, have been meaning to check). I can't recall now unfortunately. Would
seem its unnecessary now though.
On 6 Apr 2016 5:35 p.m., "Wesley Cho" [email protected] wrote:

Those tests currently pass without the changeset from the PR.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1529 (comment)

@user378230
Copy link
Contributor

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.

@user378230 user378230 closed this Apr 6, 2016
@user378230 user378230 reopened this Jul 7, 2016
@user378230 user378230 closed this Jul 7, 2016
user378230 added a commit to user378230/ui-select that referenced this pull request Jul 7, 2016
user378230 added a commit to user378230/ui-select that referenced this pull request Jul 7, 2016
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
user378230 added a commit that referenced this pull request Jul 7, 2016
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 #967 and #1686
Supersedes #1035 #1529 #1687
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants