Skip to content

Commit

Permalink
Merge pull request #181 from jbomhold3/master
Browse files Browse the repository at this point in the history
Fixes Issue 180
  • Loading branch information
chanan authored Sep 9, 2019
2 parents 3dce7c8 + 1f79269 commit 16f683e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlazorStrap/Components/ListGroup/BSListGroupItem.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@namespace BlazorStrap
@inherits BSListGroupItemBase

<DynamicElement @attributes="@UnknownParameters" href="@href" TagName="@Tag" class="@classname" @onclick="OnClick" disabled="@IsDisabled" type="@IsButton">
<DynamicElement @attributes="@UnknownParameters" href="@(Href != null && Href != "#" ? Href : href)" TagName="@Tag" class="@classname" @onclick="OnClick" disabled="@IsDisabled" type="@IsButton">
@ChildContent
</DynamicElement>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public abstract class BSListGroupItemBase : ComponentBase

[Parameter] public bool IsActive { get; set; }
[Parameter] public bool IsDisabled { get; set; }
[Parameter] public string Href { get; set; }
[Parameter] public ListGroupType ListGroupType { get; set; } = ListGroupType.List;
[Parameter] public EventCallback<MouseEventArgs> OnClick { get; set; }
[Parameter] public Color Color { get; set; } = Color.None;
Expand Down

0 comments on commit 16f683e

Please sign in to comment.