From 0f4bee0dcd613423401265559ab87872fd04e806 Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Wed, 1 May 2019 14:40:41 +0200 Subject: [PATCH] fix: rename "validate" to "validateFiles" --- src/Files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.js b/src/Files.js index 693f51e..f2bcff0 100644 --- a/src/Files.js +++ b/src/Files.js @@ -219,7 +219,7 @@ class Files extends React.Component { htmlFor: id || this.id }; }, - validate: this.validateFiles, + validateFiles: this.validateFiles, browseFiles: ({ onSuccess, onError }: BrowseFilesParams = {}) => { this.browseFilesHandler({ onSuccess, onError }); },