Skip to content

PageTitle does not modify document.title inside BlazorWebView #61010

Open
@ivanjx

Description

@ivanjx

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i am trying to sync between my blazor app's PageTitle and the window's title but apparently PageTitle is ignored when running inside BlazorWebView control on winforms and maui.

Expected Behavior

PageTitle is set properly so i can read it with document.title with JS interop.

Steps To Reproduce

  1. create a hybrid app.
  2. create a new page and a nav to it.
  3. put <PageTitle>something</PageTitle> in the new page.
  4. run the app and navigate to the new page.
  5. open the built in dev tools (F12).
  6. on the console tab and run document.title.
  7. the result is not something.

Exceptions (if any)

No response

.NET Version

9.0.200

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions