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

[Autocomplete] Escape querySelector option value #2620

Closed
wants to merge 3 commits into from

Conversation

Bartheyrman22
Copy link

This to correctly find values like "["test"]".

Q A
Bug fix? yes
New feature? no
Issues
License MIT

This to correctly find values like "["test"]".
@carsonbot carsonbot added Bug Bug Fix Status: Needs Review Needs to be reviewed labels Mar 3, 2025
Copy link
Member

@Kocal Kocal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure to understand your changes, can you give us more context please?

Also, you need to build the assets since you modified the assets source code, please read https://github.com/symfony/ux/blob/2.x/CONTRIBUTING.md#working-with-assets

@carsonbot carsonbot added Status: Needs Work Additional work is needed and removed Status: Needs Review Needs to be reviewed labels Mar 3, 2025
@Kocal Kocal changed the title Escape querySelector option value [AUtocomplete] Escape querySelector option value Mar 3, 2025
@Kocal Kocal changed the title [AUtocomplete] Escape querySelector option value [Autocomplete] Escape querySelector option value Mar 3, 2025
@Bartheyrman22
Copy link
Author

Hi Kocal,

Thanks for your comments. I'll try building the assets.

But I can't reproduce my issue of yesterday...
I'll close the PR for now and reopen if I stumble on it again.

@Kocal
Copy link
Member

Kocal commented Mar 4, 2025

Hi, alright, let me know if you need help!

@Bartheyrman22 Bartheyrman22 reopened this Mar 28, 2025
@Bartheyrman22
Copy link
Author

Some info about the error message:

SyntaxError: Element.querySelector: ':scope > option[value="["foo"]"]' is not a valid selector

@carsonbot carsonbot added Status: Needs Review Needs to be reviewed and removed Status: Needs Work Additional work is needed labels Mar 28, 2025
….querySelector: ':scope > option[value=[foo]]' is not a valid selector
Copy link

📊 Packages dist files size difference

Thanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
Please review the changes and make sure they are expected.

FileBefore (Size / Gzip)After (Size / Gzip)
Autocomplete
controller.js 16.71 kB / 3.97 kB 16.93 kB+1% 📈 / 4.02 kB+1% 📈

@Bartheyrman22 Bartheyrman22 deleted the patch-1 branch March 28, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants