Skip to content

Commit 1df6686

Browse files
Corrected wrong event name.
1 parent 41e88cb commit 1df6686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KristofferStrube.Blazor.FileAPI/FileReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public async Task RemoveOnErrorEventListenerAsync(EventListener<ProgressEvent> c
397397
/// <param name="options"><inheritdoc cref="EventTarget.AddEventListenerAsync{TEvent}(string, EventListener{TEvent}?, AddEventListenerOptions?)" path="/param[@name='options']"/></param>
398398
public async Task AddOnLoadEndEventListenerAsync(EventListener<ProgressEvent> callback, AddEventListenerOptions? options = null)
399399
{
400-
await AddEventListenerAsync("error", callback, options);
400+
await AddEventListenerAsync("loadend", callback, options);
401401
}
402402

403403
/// <summary>
@@ -407,7 +407,7 @@ public async Task AddOnLoadEndEventListenerAsync(EventListener<ProgressEvent> ca
407407
/// <param name="options"><inheritdoc cref="EventTarget.RemoveEventListenerAsync{TEvent}(string, EventListener{TEvent}?, EventListenerOptions?)" path="/param[@name='options']"/></param>
408408
public async Task RemoveOnLoadEndEventListenerAsync(EventListener<ProgressEvent> callback, EventListenerOptions? options = null)
409409
{
410-
await RemoveEventListenerAsync("error", callback, options);
410+
await RemoveEventListenerAsync("loadend", callback, options);
411411
}
412412

413413
/// <inheritdoc/>

0 commit comments

Comments
 (0)