[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix a RouteLink bug concerning null value in the EnabledProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Jul 11, 2019
1 parent 238a383 commit 2b053ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotVVM.Framework/Controls/RouteLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected override void AddAttributesToRender(IHtmlWriter writer, IDotvvmRequest
{
writer.AddKnockoutDataBind(EnableKnockoutBinding, enabledBinding.GetKnockoutBindingExpression(this));
}
if (!GetValue<bool>(EnabledProperty))
if (GetValue<bool?>(EnabledProperty) == false)
{
writer.AddAttribute("disabled", "disabled");
}
Expand Down

0 comments on commit 2b053ae

Please sign in to comment.