Skip to content

ElementReference.FocusAsync(true) does not seem to be registered #522

@anddrzejb

Description

@anddrzejb

Describe the bug
When calling await element.FocusAsync(true), it seems that bUnit does not register it. When event is called, code never resumes. Currently the only workaround is to register the event manually like this:

    JSInterop.SetupVoid("Blazor._internal.domWrapper.focus", _ => true).SetVoidResult();

Version info:

  • bUnit version: 1.2.49
  • .NET Runtime and Blazor version: net 6 rc1
  • OS type and version: windows 10

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions