Skip to content

fix: Allow [INPUT|type=file] to be used outside of Shadow forms without duplicate JS (#176) - #655

Open
random-solver wants to merge 1 commit into
quantacms:masterfrom
random-solver:fix/file-input-outside-shadow-176
Open

random-solver wants to merge 1 commit into
quantacms:masterfrom
random-solver:fix/file-input-outside-shadow-176

Conversation

@random-solver

Copy link
Copy Markdown

Fixes #176

Summary

  • Ensures required file-upload JavaScript assets (jquery.knob.js, jquery.iframe-transport.js, jquery.fileupload.js, file-upload.js) are loaded whenever [INPUT|type=file] is rendered, even outside Shadow forms.
  • Uses a static $uploadJsLoaded guard and DOM script check so the JS bundle is never loaded twice.

This branch has not been deployed

No deployments
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.

Allow input file (multiple uploads) to be used outside of shadow forms.

1 participant