Skip to content

Commit

Permalink
Merge pull request #3 from KristofferStrube/fix/eventtarget-create-as…
Browse files Browse the repository at this point in the history
…ync-not-public

Fixed that the `CreateAsync` method with no options for `EventTarget` was not public.
  • Loading branch information
KristofferStrube authored Apr 9, 2024
2 parents 9422fd5 + caa6791 commit 4ba61dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/KristofferStrube.Blazor.DOM/Abort/AbortSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class AbortSignal : EventTarget, IJSCreatable<AbortSignal>
private readonly ErrorHandlingJSObjectReference errorHandlingJSReference;

/// <inheritdoc/>
public static async Task<AbortSignal> CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference)
public static new async Task<AbortSignal> CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference)
{
return await CreateAsync(jSRuntime, jSReference, new());
}
Expand Down
2 changes: 1 addition & 1 deletion src/KristofferStrube.Blazor.DOM/Events/EventTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace KristofferStrube.Blazor.DOM;
public class EventTarget : BaseJSWrapper, IJSCreatable<EventTarget>
{
/// <inheritdoc/>
static async Task<EventTarget> IJSCreatable<EventTarget>.CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference)
public static async Task<EventTarget> CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference)
{
return await CreateAsync(jSRuntime, jSReference, new());
}
Expand Down

0 comments on commit 4ba61dd

Please sign in to comment.