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

Fix for issue #194 #229

Closed
wants to merge 4 commits into from
Closed

Conversation

JanSneeuw
Copy link

Fixes #194

The issue was caused by the fact that the needed javascript was only loaded when the uploadfields were present. Because the reducer was only injected when the DOM was loaded, however the DOMContentLoaded event will only be called on the initial load of the CMS. This means that the reducer would never get injected if you load a page without the uploadfields, and thus the needed functionalities would not be present.

To solve this issue I have loaded the javascript using a config into the main component of the CMS (LeftAndMain), meaning the reducer will always be injected (no matter what page you initially load into).

@GuySartorelli
Copy link
Member

The namespace changes here make this PR completely unviable. I'm going to close it.
If you want to fix the bug this is intended to fix, please raise a new PR which only includes the changes required to fix that bug.

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.

Selecting from assets does not work.
2 participants