Skip to content

Commit 6c7bd56

Browse files
Copilotdanroth27
andcommitted
Remove InputFile cancel event from release notes (bug fix, not feature)
Co-authored-by: danroth27 <1874516+danroth27@users.noreply.github.com>
1 parent e2a5026 commit 6c7bd56

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

release-notes/11.0/preview/preview1/aspnetcore.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Here's a summary of what's new in ASP.NET Core in this preview release:
1111
- [`GetUriWithHash()` extension method](#geturiwithhash-extension-method)
1212
- [BasePath component](#basepath-component)
1313
- [MathML namespace support](#mathml-namespace-support)
14-
- [InputFile cancel event](#inputfile-cancel-event)
1514
- [BL0010 analyzer for JSInterop](#bl0010-analyzer-for-jsinterop)
1615
- [`IComponentPropertyActivator` for custom property injection](#icomponentpropertyactivator-for-custom-property-injection)
1716
- [SignalR `ConfigureConnection` method](#signalr-configureconnection-method)
@@ -295,36 +294,6 @@ Blazor now properly supports MathML elements in interactive rendering. MathML el
295294

296295
This fix ensures that MathML content renders correctly in browsers when added dynamically through Blazor's renderer, resolving issues where MathML elements were previously being created as regular HTML elements without the proper namespace.
297296

298-
## InputFile cancel event
299-
300-
The `InputFile` component now supports detecting when file selection is canceled through the new `OnCancel` event callback. This event fires when a user opens the file picker but dismisses it without selecting any files.
301-
302-
```razor
303-
<InputFile OnChange="@HandleFileSelected" OnCancel="@HandleCanceled" />
304-
305-
@if (isCanceled)
306-
{
307-
<p>File selection was canceled.</p>
308-
}
309-
310-
@code {
311-
bool isCanceled;
312-
313-
void HandleFileSelected(InputFileChangeEventArgs e)
314-
{
315-
isCanceled = false;
316-
// Handle selected files
317-
}
318-
319-
void HandleCanceled()
320-
{
321-
isCanceled = true;
322-
}
323-
}
324-
```
325-
326-
This enables better UX by allowing developers to provide feedback or clear loading states when users cancel file selection.
327-
328297
## BL0010 analyzer for JSInterop
329298

330299
A new Blazor analyzer (BL0010) has been added that recommends using `InvokeVoidAsync` instead of `InvokeAsync<object>` when calling JavaScript functions that don't return values. This analyzer helps developers write more efficient JSInterop code.

0 commit comments

Comments
 (0)