Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to disable / enable the Uppy drag/drop and browse #1530

Closed
genachka opened this issue May 7, 2019 · 8 comments · Fixed by #2768
Closed

Method to disable / enable the Uppy drag/drop and browse #1530

genachka opened this issue May 7, 2019 · 8 comments · Fixed by #2768
Labels
Feature UI User Interface issues

Comments

@genachka
Copy link

genachka commented May 7, 2019

If certain form field(s) are not set, I want to show the control as disabled and enable when condition(s) satisfied. Is there a property that can be dynamically set or a method called to do that?

@lakesare
Copy link
Collaborator

lakesare commented May 17, 2019

@arturi, should we add some opts.disabled option that will be adding pointer-events: none; and some disabled styles to the dashboard?

@arturi
Copy link
Contributor

arturi commented May 20, 2019

Yeah, we could add something like that, although we don’t have a way to dynamically change options at the moment, so enabling it back when condition is met would require re-initializing uppy?

@arturi
Copy link
Contributor

arturi commented May 20, 2019

@genachka are you talking about the Dashboard plugin https://uppy.io/examples/dashboard/, by the way?

@arturi arturi added Dashboard UI User Interface issues labels May 20, 2019
@genachka
Copy link
Author

@arturi correct, this is in respect to the Dashboard plugin.

@kvz
Copy link
Member

kvz commented Jun 3, 2019

Thanks for the feedback! We agree that the option to disable UI components may be useful and we've added it to our backlog. We'll close this issue, but tagged it, and will re-open once we get to this. It's planned for the mid-term. If you need this sooner, PRs are very welcome!

@Ionut-Milas
Copy link

@arturi I see that this feature is now merged.
However, it requires a re-initialization of uppy.
Am I missing smth ?

@mees-van-wel
Copy link

This feature is now merged in the dashboard plugin but not in the Drag & Drop plugin / React component...

@KrishnaPG
Copy link

Looking for a way to disable drag&drop for the Dashboard and wondering how to achieve it. There does not seem to be any setting for it in the Dashboard https://uppy.io/docs/dashboard

Any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature UI User Interface issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants