You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Added default values for props. This was cause errors when allowedExtensions prop is not provided](https://github.com/rasimandiran/react-file-trap/commit/7b0b3bf1db94faa6ba05047d21e3ca86e0ebcd64)
6
+
-[onClick event handler checked before bind. This was cause errors when browseOnClick prop is false but manual triggering element inside of the trap](https://github.com/rasimandiran/react-file-trap/commit/2017715a48ca41123b45e14f1463303a0813bcd7)
7
+
-[Added a new funtion to remove specific files from file list](https://github.com/rasimandiran/react-file-trap/commit/d6fd3cc9e6f868a27810ae099e6167656698538e)
8
+
-[Page title of the example application is updated](https://github.com/rasimandiran/react-file-trap/commit/48d9b5153c3c534450a2bcd602d92cc46c2be446)
|`ref`|`ref`| Suggest to use to reset and/or trigger browse outside of child component |`undefined`| Should be defined to trigger some [functions](https://github.com/rasimandiran/react-file-trap#functions)|
46
+
|`allowedExtensions`|`array`| Allowed file extensions |`undefined`| Don't provide to allow all file types |
47
+
|`handleChange`|`function`| Runs when selected and/or dropped a valid file || Mandatory prop to handle files. See [events](https://github.com/rasimandiran/react-file-trap#events)|
48
+
|`handleDrag`|`function`| Runs for every drag event. Possible values: `dragover``dragleave`|`undefined`| See [events](https://github.com/rasimandiran/test/tree/main#events)|
49
+
|`handleDrop`|`function`| Runs when dropped a file |`undefined`| See [events](https://github.com/rasimandiran/react-file-trap#events)|
50
+
|`onValidationError`|`function`| Runs everytime if dropped or selected file invalid |`undefined`| See [events](https://github.com/rasimandiran/react-file-trap#events)|
0 commit comments