Closed StephenOTT closed 2 weeks ago
@vnbaaij The Href
property could be "not required" and "nullable". What do you think?
[Parameter]
public required string? Href { get; set; }
@vnbaaij The
Href
property could be "not required" and "nullable". What do you think?[Parameter] public required string? Href { get; set; }
Yes, we can do that. It was this way when we adopted from Aspire but think it is better to change it (and it still works if you do specify a null value).
Also have a nice fix for the reported issue. PR incoming...
🐛 Bug Report
Based on the docs for AppBar, it would seem to indicate that using Href="@(null)" will let you use the OnClick function.
But doing this on the main page of a app where there is no path, other than the domain, causes the href=null "apps" to show as active.
💻 Repro or Code Sample
Use the demo app bar (https://www.fluentui-blazor.net/AppBar#withonclickevent) on a
/
page:such as
🤔 Expected Behavior
using the null for href should not activate the "app".
on a related note, is there a way through runtime code to set the active/inactive status of a app item?