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

Comma in values fix #256

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Comma in values fix #256

merged 1 commit into from
Apr 23, 2024

Conversation

iantance
Copy link

@iantance iantance commented Apr 19, 2024

Addresses: GG-327

Partial fix for commas in much select options. The issue comes up because we are using comma separated encoding for the selected value in most places. We get the selected value by splitting on ,.

This updates comma separated encoding to skip spitting on , for single selects. A single select should only have one selected value, so there is no need to split in that case.

A more general fix would probably require switching to JSON encoding everywhere.

@iantance iantance marked this pull request as ready for review April 22, 2024 16:09
@iantance iantance requested a review from a team April 22, 2024 16:10
Copy link

@carolynsmi carolynsmi left a comment

Choose a reason for hiding this comment

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

I know jachin tried json encoding from the elm side 🤔 and had to revert it a bunch https://github.com/DripEmail/drip-elm/pull/2541

I dont have a lot of the context as to what went wrong. But if we've tested that this works with a bunch of different single selects it looks good to me!

@@ -3,6 +3,8 @@
"title": "Build much-select for development",
"command": [
"watchexec",
"--project-origin",

Choose a reason for hiding this comment

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

tested locally and i can still run successfully with this so im good with these changes 👍🏻

@sbone sbone requested a review from a team April 23, 2024 13:37
@sbone sbone requested a review from a team April 23, 2024 13:38
@iantance iantance merged commit 89591f9 into master Apr 23, 2024
1 check passed
@iantance iantance deleted the comma-in-value-fix branch April 23, 2024 16:24
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.

None yet

3 participants