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

Widget will only load in one very specific configuration #2277

Open
otonoton opened this issue Dec 7, 2023 · 0 comments
Open

Widget will only load in one very specific configuration #2277

otonoton opened this issue Dec 7, 2023 · 0 comments

Comments

@otonoton
Copy link

otonoton commented Dec 7, 2023

Using version 5, I'm having tons of problems getting the upload widget to show up at all, it only seems to work with one very specific configuration. It seems I must be using a class name of exactly "dropdown" (no other value seems to work), and also disable autodiscover and manually creating the Dropzone object.

Using default autodiscover with <form class="dropzone"></form> - "No URL provided." It seems to ignore the form action entirely and refuses to load.

Using default autodiscover with <div class="dropzone"></div> - "No URL provided."

Using new Dropzone("div.dropdown") - "No URL provided." and "Dropzone already attached."

Using Dropzone.autoDiscover = false; new Dropzone("div.my-dropdown") - "No URL provided." (yes I changed the div class name to match)

Using Dropzone.autoDiscover = false; new Dropzone("div.my-dropdown", { url: "/foo" }) - no error but nothing is displayed

Using Dropzone.autoDiscover = false; new Dropzone("div.dropdown") - "No URL provided."

Using Dropzone.autoDiscover = false; new Dropzone("div.dropdown", { url: "/foo" }) - Works... however there is a 2em margin that makes it render outside of the div:

スクリーンショット 2023-12-07 午後1 20 53

Any idea what is going on??

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

No branches or pull requests

1 participant