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

Add option for hidden input field container selector #1044

Merged
merged 1 commit into from
Oct 11, 2015

Conversation

ilucin
Copy link
Contributor

@ilucin ilucin commented Sep 2, 2015

I'm using Dropzone on a webapp with Turbolinks 3 architecture (https://github.com/rails/turbolinks). It means that when navigating through links - new HTML is fetched and body is replaced with JS. But also, it is possible to keep some of the DOM nodes in that process so they are permanent.

Basically, I want to initialize Dropzone once and have the uploads active while I'm navigating through my app. To do that, I need to place hidden file input in the "permanent" container and not directly into the body. Otherwise, every Turbolinks body change would remove the hidden input and disable Dropzone from working.

This commit fixed my issue. The change is simple and doesn't interfere in any way with other parts of Dropzone - so it would be great if it can be merged into original repo.

enyo added a commit that referenced this pull request Oct 11, 2015
Add option for hidden input field container selector
@enyo enyo merged commit a6c2e5a into dropzone:master Oct 11, 2015
@enyo
Copy link
Collaborator

enyo commented Oct 11, 2015

Nice. Thank you.

@enyo enyo mentioned this pull request Oct 11, 2015
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

Successfully merging this pull request may close these issues.

2 participants