Skip to content

Commit

Permalink
#864 [HxSidebar] Clicking non-expandable node when MultipleItemsExpan…
Browse files Browse the repository at this point in the history
…sion should collapse current node - exposing seams for custom solution
  • Loading branch information
hakenr committed Aug 5, 2024
1 parent 0e3b71e commit 5e1f5f0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,16 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
}

private void HandleCollapseShown()
protected virtual Task HandleCollapseShown()
{
expanded = true;
return Task.CompletedTask;
}

private void HandleCollapseHidden()
protected virtual Task HandleCollapseHidden()
{
expanded = false;
return Task.CompletedTask;
}

// Bootstrap Collapse (data-bs-toggle="collapse") prevents default action (navigation) on click
Expand Down

0 comments on commit 5e1f5f0

Please sign in to comment.