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

Treat <option value=""> and <option> the same for null select #6351

@tehnrd

Description

@tehnrd

If the value attribute in an option tag does not exist angular will not show the value for null. Here is an example: http://jsfiddle.net/MTfRD/673/ .

The obvious answer would be to make sure option includes a value="" like so:

<option value=""></option>

This makes perfect sense but there are some platforms that will strip out the value attribute if it has no value. There are work arounds and some of those are discussed here, http://salesforce.stackexchange.com/questions/28310/angular-option-for-null-not-working-in-visualforce , but they just feel hacky and not right.

I'd like to propose treating:
<option value=""></option>

and

<option></option>

...as the same for null values.

This may be considered a bug or feature request and I am open this this being not implemented at all as there are workarounds, albeit ugly ones, but I wanted to at least start the discussion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions