Тип аргумента «Microsoft.AspNetCore.Components.ElementReference» не может быть назначен типу параметра «объект?[]?»
в строке this.rootElement из
Код: Выделить всё
protected Microsoft.AspNetCore.Components.ElementReference rootElement;
public async System.Threading.Tasks.ValueTask getRootElementOffsetCoordinates()
{
return await this.javaScriptRuntime.InvokeAsync(
"getDOM_ElementOffsetCoordinates",
this.rootElement
);
}
Код: Выделить всё
record RootElementOffsetCoordinates
{
public required double Top { get; init; }
public required double Left { get; init; }
}