Repository navigation
AuthorizeView Policy and FluentTab not working #5663
Replies: 2 comments
|
its working: |
|
Nothing is wrong with the policy itself.
fluentui-blazor/src/Core/Components/Tabs/FluentTabs.razor.cs Lines 168 to 185 in 82c4c86 A more stable pattern is to keep every fluentui-blazor/src/Core/Components/Tabs/FluentTab.razor.cs Lines 107 to 130 in 82c4c86 <FluentTabs>
<FluentTab Header="Info"
Visible="@infoAuthorized"
IconStart="@(new Icons.Regular.Size16.Info())">
...
</FluentTab>
@* other tabs *@
</FluentTabs>That avoids wrapping a tab in |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello.
I need restriction on tabs with code:
but this generate runtime error: "TypeError: r.getElementById is not a function" in js-file "Microsoft.FluentUI.AspNetCore.Components.lib.module.js"
With
<AuthorizeView Roles="InfoRole">code is working.Whats wrong?
(fluent ver: 5.1.0, .Net 11, Blazor SSR)
All reactions