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

Change to set null instead of undefined when ctrl is clea #1918

Closed
wants to merge 1 commit into from

Conversation

cloudrick
Copy link

[why] Null is more readable for empty value.
[how] * When ctrl is cleared, set null to its selection.
* In ngModel.$parsers, add a handler to
) return null for null value.
) return undefined for undefined value.
* Also modify test case for checking clear value.

[why] Null is more readable for empty value.
[how] * When ctrl is cleared, set null to its selection.
      * In ngModel.$parsers, add a handler to
        ) return null for null value.
	) return undefined for undefined value.
      * Also modify test case for checking clear value.
@Jefiozie
Copy link
Contributor

Closing it down as it is a duplicate of #1908, please comment on that PR if you see problems with the proposed solution.

Thanks.

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.

2 participants