ant-design-blazor/components/radio/Radio.razor
zxyao 86942d7e18 fix: modal box randomly closed when multiple mouse click performed within it (#696) (#715)
* fix: invalid type mapping

* fix: frequent click results in modal self-closing (#696)

* fix(module: radio): the onclick event is repeatedly triggered
2020-10-25 19:21:36 +08:00

21 lines
663 B
C#

@namespace AntDesign
@typeparam TValue
@inherits AntDomComponentBase
<label @onclick="OnClick" @onclick:preventDefault="true" class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
<span class="@RadioClassMapper.Class">
<input type="radio"
autofocus="@AutoFocus"
class="@InputClassMapper.Class"
disabled="@Disabled"
checked="@IsChecked"
name="@_name"
@bind="@Value"
@ref="InputRef" />
<span class="@InnerClassMapper.Class"></span>
</span>
@if (ChildContent != null)
{
<span>@ChildContent</span>
}
</label>