Skip to content

Commit

Permalink
fix: allow setting input {disabled} prop to false
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh authored and rolandjitsu committed Jul 30, 2019
1 parent a159354 commit acea5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -716,7 +716,7 @@ export function useDropzone({
onClick: composeHandler(composeEventHandlers(onClick, onInputElementClick)),
autoComplete: 'off',
tabIndex: -1,
disabled: disabled || noClick,
disabled: disabled !== undefined ? disabled : noClick,
[refKey]: inputRef
}

Expand Down

0 comments on commit acea5df

Please sign in to comment.