Commit 21e19a3
committed
Assign unique
In #153870f, I attempted to mitigate the issue of .NET Core assigning duplicate `id`s to radio buttons bound using the `asp-for` tag helper by using `id=""`. This didn't actually work as intended, however, as Chrome still sees `id` as a duplicate (multiple elements having a `null` `id` presumably). To mitigate this, I am using `GetFullHtmlFieldName()` and `CreateSantizedId()` to generate a unique identifier based on the existing HTML field prefix.ids to radio buttons1 parent 5aa7bfc commit 21e19a3
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
0 commit comments