Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngOptions doesn't render the label 0 (zero) #1401

Closed
YeFFreY opened this issue Sep 21, 2012 · 0 comments
Closed

ngOptions doesn't render the label 0 (zero) #1401

YeFFreY opened this issue Sep 21, 2012 · 0 comments

Comments

@YeFFreY
Copy link

YeFFreY commented Sep 21, 2012

When using ngOptions to render options related to an array where zero is one of the labels, it will not be displayed. But the value will be set correctly.

A fiddle about that : http://jsfiddle.net/kgVCK/1/

IgorMinar pushed a commit that referenced this issue Oct 31, 2012
Bug caused by the use of the `||` operator to replace all non-truthy
values with an empty string. Changed to replace only `undefined` values.

Closes #1401
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants