Browse Source

Fix for non-required inputs

bubble
Owen Conti 7 years ago
parent
commit
718658e837
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/core/utils.js

+ 1
- 1
src/core/utils.js View File

@@ -463,7 +463,7 @@ export const validateInteger = ( val ) => {
}

export const validateFile = ( val ) => {
if ( !(val instanceof win.File) ) {
if ( val && !(val instanceof win.File) ) {
return "Value must be a file"
}
}


Loading…
Cancel
Save