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

.then function executes before content loaded via AJAX #67

Open
psenechal opened this issue Jan 27, 2017 · 1 comment
Open

.then function executes before content loaded via AJAX #67

psenechal opened this issue Jan 27, 2017 · 1 comment

Comments

@psenechal
Copy link

It looks like the .then function is executing before the content has completely loaded in the modal when using the .ajax method. This causes events that are wired up in the .then function to not wire up since the elements are present when the function runs.

I hacked in a work-around for now by surrounding the code in my .then with a 1/2 second timeout function.

Any possible way this can be fixed? Thanks.

@vengo071
Copy link

vengo071 commented Dec 4, 2017

Indeed, I want to launch a Dropzone fileupload in eModal.
But the element is not loaded yet, so I cannot use trigger Dropzone to launch.
Using a delay is also not the best solution.
Any idea?

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

2 participants