Skip to content

Blazor MAUI dynamic root components fail on iOS hardware #6965

@MackinnonBuck

Description

@MackinnonBuck

Description

Attempting to add a Blazor root component via the JavaScript method Blazor.rootComponents.add() causes an exception to be thrown in the console:

image

Steps to Reproduce

  1. Clone and build this repository locally.
  2. Open Microsoft.Maui.sln in Visual Studio.
  3. Set Maui.Controls.Sample as the startup project.
  4. Connect to a Mac and deploy to an available iOS remote device.
  5. After the app launches on the iOS device, click the "Blazor" button.
  6. Click "Add dynamic component". Nothing happens on the iOS device, but inspecting the webview via Safari on MacOS will show the console error.

Version with bug

Release Candidate 3

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

Tested on iOS 15

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

area-blazorBlazor Hybrid / Desktop, BlazorWebViewplatform/iost/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions