Skip to content

Commit 20cea75

Browse files
authored
docs: update fileselect events article (#3201)
* docs: update fileselect events article * docs: add pr review suggestions
1 parent 344c6eb commit 20cea75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/fileselect/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Property | Type | Description
4141

4242
The `OnSelect` fires when one or more files have been selected. The selection of files is achieved either through the **Select Files** button or by dropping the files anywhere in the component.
4343

44-
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo), which contains a list of `FileInfo` objects that allow the processing of the files.
44+
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo). If you set its `IsCancelled` property to `true`, the component will ignore the user action and the selected files will not appear in the component file list.
4545

4646
See the [example below](#example).
4747

4848
## OnRemove
4949

5050
The `OnRemove` fires when a file has been removed from the list of selected files either by clicking the **x** icon or by pressing the `Del` key.
5151

52-
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo). As the FileSelect component allows deleting one item at a time, the collection contains only one `FileSelectFileInfo` object (the deleted one).
52+
The event handler receives a [`FileSelectEventArgs` object](#fileselectfileinfo). The `Files` collection in the event argument always contains a single `FileSelectFileInfo` object. This is unlike the `OnSelect` event where `Files` may include one or more files.
5353

5454
## Example
5555

0 commit comments

Comments
 (0)