It would appear this is happen because salesforce.com is rendering:

<select>
      <option value="">-- choose color --</option>
</select>   

as

<select>
      <option>-- choose color --</option>
</select>   

And this is breaking angular but I still don't know how to resolve it. I 
can't control what sfdc does.

Think this is a bug/feature request for angulars where it should treat an 
<option> with no value the same as <option value="">

On Wednesday, February 19, 2014 9:11:15 AM UTC-8, Jason Venable wrote:
>
> In salesforce.com Visualforce pages the default <option> value for null 
> is not being displayed. I have a very simple select component with one 
> <option> child for the null value as defined by the Angular Docs (
> http://docs.angularjs.org/api/ng/directive/select).
>
> Here is the very simple app working on jsfiddle: 
> http://jsfiddle.net/MTfRD/670/ 
>
> And here it is on a salesforce.com Visualforce page, notice the "-- 
> choose color --" option is not displayed in the select: 
> http://geopointedev-developer-edition.na14.force.com/angularoption
>
> This is driving me a little mad so any ideas on what may be going wrong 
> here would be very helpful.
>
> Thanks,
> Jason
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to