Skip to content

Commit d2e00d8

Browse files
IvanDanchevIvanDanchev
authored andcommitted
docs: add pr review suggestions
1 parent 5e09ec5 commit d2e00d8

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). The FileSelectEventArgs event argument contains the properties `Files` (a collection of `FileSelectFileInfo` members) and `IsCancelled`. When `IsCancelled` is set to `true`, it cancels the event and the respective user action.
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) that has the `Files` and `IsCancelled` properties. Unlike the `OnSelect` event, in which the `Files` collection may contain multiple `FileSelectFileInfo` objects, in the `OnRemove` event, it 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)