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

Scope upload input lookup in uploadTo #2836

Merged

Conversation

jonatanklosko
Copy link
Contributor

Currently calling this.uploadTo(phxTarget, "file", ...) looks up upload input with name="file" in the whole LV and fails if there are many. This changes the lookup to respect phxTarget, so that multiple LC on the page can use the same name.

@chrismccord chrismccord merged commit 105ab2c into phoenixframework:main Oct 4, 2023
@chrismccord
Copy link
Member

❤️❤️❤️🐥🔥

@jonatanklosko jonatanklosko deleted the jk-scoped-upload-to branch October 4, 2023 19:29
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