MultiSelect TagHelper has incorrect "name" attribute when its "id" attribute is changed #7990
Labels
Bug
C: MultiSelect
FP: Completed
Sync status with associated Feedback Item
S: Wrappers (ASP.NET Core)
SEV: Low
Milestone
Bug report
When using the
@Html.EditorFor(m => m)
configuration to initialize a MultiSelect TagHelper editor, and passing a specified value for its "id" attribute, the "name" attribute of the<select>
element contains a prefix.Reproduction of the problem
@Html.EditorFor(a=>a.Names, new{id="customId"})
in a form:When using the HtmlHelper version of the MultiSelect, the "name" attribute is correct:
Expected/desired behavior
When using the
@Html.EditorFor(m => m)
configuration, the "name" attribute of the MultiSelect TagHelper must match the Model property name when the "id" attribute is set to a custom value.Environment
The text was updated successfully, but these errors were encountered: