[go: nahoru, domu]

Skip to content

Commit

Permalink
Bug in RadioButton type checking fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Jul 23, 2019
1 parent 4cb6ffd commit e7342a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotVVM.Framework/Controls/RadioButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected virtual void RenderCheckedAttribute(IHtmlWriter writer)
public static IEnumerable<ControlUsageError> ValidateUsage(ResolvedControl control)
{
var itemType = control.GetValue(CheckedItemProperty)?.GetResultType();
var nonNullItemType = itemType.IsNullable()
var nonNullItemType = itemType?.IsNullable() == true
? itemType.GetGenericArguments()[0]
: itemType;
var valueType = control.GetValue(CheckedValueProperty)?.GetResultType();
Expand Down

0 comments on commit e7342a5

Please sign in to comment.