Explorar el Código

if an item is checked, it can’t be disabled (#3288)

Artur Paikin hace 3 años
padre
commit
e0b8939b93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/@uppy/provider-views/src/Browser.js

+ 1 - 1
packages/@uppy/provider-views/src/Browser.js

@@ -115,7 +115,7 @@ function Browser (props) {
                   viewType,
                   i18n,
                   type: 'file',
-                  isDisabled: !validated.result && isChecked(file),
+                  isDisabled: !validated.result && !isChecked(file),
                   restrictionReason: validated.reason,
                 })
               })}