Explorar el Código

Fix for non-required inputs

bubble
Owen Conti hace 7 años
padre
commit
718658e837
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/core/utils.js

+ 1
- 1
src/core/utils.js Ver fichero

@@ -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"
}
}


Cargando…
Cancelar
Guardar