React-dropzone: Add disable attribute

Created on 23 May 2017  路  4Comments  路  Source: react-dropzone/react-dropzone

Hi, I think that it would be useful to add disable attribute to dropzone.

There are certainly cases in which you want just disable dropzone, but in current situation you have to remove dropzone entirely and then append it again to achieve this effect.

enhancement help wanted

Most helpful comment

+1 for disable

All 4 comments

That sounds like a good opportunity for a PR! Please feel free to create it and let's continue discussion there.

Closing of inactivity

+1 for disable

Hello,
My workaround was changing a bit the style of the div parent:
pointer-events: IsDisabled ? "none" : "auto"

where IsDisabled is a boolean flag

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ktalebian picture ktalebian  路  4Comments

damon-kreft picture damon-kreft  路  3Comments

emilpriver picture emilpriver  路  3Comments

steverecio picture steverecio  路  4Comments

timothyallan picture timothyallan  路  4Comments