Commit 1be3eb3
committed
Ensure labels aren't treated as values
The `TopicListViewComponent` includes support for a `DefaultLabel`. Previously, the `SelectListItem.Value` was set to `null`. This results in .NET (or, perhaps, HTML) using the label as the value, if no other value is selected. E.g., if the `TopicListAttribute`'s `DefaultValue` is set to "Select a topic…" and no topic is selected, then the value would be set to "Select a topic…". That's not what we want. By using an empty string instead, we mitigate this issue.1 parent 18f676b commit 1be3eb3
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments