Skip to content

fix: (Regression) ExpandedChanged binding in FluentNavGroup no longer firingΒ #2289

@teyc

Description

@teyc

πŸ› Bug Report

Versions affected: 4.8.0, 4.81
Version not affected: 4.7.2

πŸ’» Repro or Code Sample

   <nav class="sitenav">
    <FluentNavMenu Id="bug-menu">
        <FluentNavGroup @bind-Expanded="expanded">
            <TitleTemplate>
                Sample Title @expanded
            </TitleTemplate>
        </FluentNavGroup>
    </FluentNavMenu>
    </nav>
</div>

@code {
    private bool expanded = true;
}

πŸ€” Expected Behavior

Clicking should toggle value
image
image

😯 Current Behavior

Clicking doesn't toggle value
image
image

πŸ’ Possible Solution

Untested https://github.com/microsoft/fluentui-blazor/compare/dev...teyc:fix/2289-ExpandedChanged?expand=1
Related to d0a0a4e

πŸ”¦ Context

We use the Expanded state to virtualise child content, as we have a lot of data.

🌍 Your Environment

Versions affected: 4.8.0, 4.81
Version not affected: 4.7.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions