Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix JS.exec with scope selector #3678

Merged

Conversation

SerhiiFesenko
Copy link
Contributor

When JS.exec is used with the scope selector it throws an error complaining bad selector.

Uncaught SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '[object Object]' is not a valid selector.

This PR updates the JS code to execute the command for elements that have already been filtered by to option.

@SteffenDE SteffenDE merged commit 04a987b into phoenixframework:main Feb 17, 2025
8 checks passed
@SteffenDE
Copy link
Collaborator

Thank you very much! We've clearly been missing tests there, so thank you a lot for adding those as well 🚀

SteffenDE pushed a commit that referenced this pull request Feb 18, 2025
* add tests

* fix exec_exec function to use already filtered element
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants