DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

Validation text appears twice for #435

Closed natiki closed 7 years ago

natiki commented 7 years ago

Hi,

I am using the following for a radio group.

<div class="well well-sm">
    @f.FormGroup().RadioButtonFor(m => m.PayCruiseEarlyAndInFull, "True").Label().LabelText("Save xx% ($xx.xx) off your cruise by paying for your cruise in full.")
    @f.FormGroup().RadioButtonFor(m => m.PayCruiseEarlyAndInFull, "False").Label().LabelText("No, thank you.")
</div>

My view model has a [Required] field attribute. When there is a validation failure I am getting two sets of labels:

image

I only want the labels after the text. How do I achieve this?

DmitryEfimenko commented 7 years ago

This is fixed. Please get latest.

natiki commented 7 years ago

Works as expected.