The IJSObjectReference.Invoke
implementation does not support Javascript properties (i.e. getters and setters)
#25756
Labels
affected-most
This issue impacts most of the customers
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-blazor-jsinterop
This issue is related to JSInterop in Blazor
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
severity-nice-to-have
This label is used by an internal tool
Status: Resolved
Milestone
Describe the bug
The
IJSObjectReference.Invoke
implementation does not support javascript properties (i.e. getters and setters). Since properties are simply encapsulated functions, I think we should be able to read properties withIJSObjectReference.Invoke<PropertyType>("propertyName")
and write properties withIJSObjectReference.InvokeVoid("propertyName", value);
To Reproduce
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: