Skip to content

component dont update the changing value #46634

@wxyer

Description

@wxyer

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i have two layout ,mainLayout and a specialLayout,both use a shared navmaeu,
the navmenu synchronize the document title.
c# code
image

razor code

image
initialize app with mainlayout is ok,url changed, title woule update with document title,but when mainlayout change to speiciallayout, title not changed when url changed.
when i copy the navmenu code to new component,it works.

Expected Behavior

title should updated when user change layout weather layout shared with same naumenu,

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

7.0.102

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions