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

Not possible to use Symbol values for checkbox v-model values #10598

Closed
mitar opened this issue Mar 26, 2024 · 3 comments
Closed

Not possible to use Symbol values for checkbox v-model values #10598

mitar opened this issue Mar 26, 2024 · 3 comments

Comments

@mitar
Copy link

mitar commented Mar 26, 2024

Vue version

3.4.21

Link to minimal reproduction

https://play.vuejs.org/#eNqlkk9PAjEQxb/KpBcxQYjoiSwkaDhojBpRL9bDsgxY7LZN/6yQzX53Z7suYjRcvE3fe53+ZtKSTYzpFQHZkCUus8J4cOiDGXMlcqOthxIsLqGCpdU5HFH0iCuuMq2ch+fJzdP0FEYw2+ZzLTucNQpnxz8ig1+RQYy0oSKVASlDL3VeXslI+g0MYdDBY25k6pFOAIlQJnjwW4MjzrI3zN7nesMZFCe5XqAkMbYjZRgLEloq6P+vBVG3LRaiGJflF3lVJf1aqMH3YFmXeUcTLsWqt3Za0ZLL+jK9qXMjJNo74wVtgLMhRKf2Uin1x3XUvA3YbfXI+Ye+doQ+pOLeokNbEPbO86ldoW/s6ewWN1TvTJo1SEofMB/QaRlqxiZ2EdSCsPdykfYqfhWhVo9uuvGoXDtUDVonq5intQa8PDD6N+5Z7zze46pi1SdpaN8M

Steps to reproduce

Create multiple checkboxes with array v-model and pass a symbol value to each checkbox value prop.

What is expected?

That the v-model array contains the symbol value if the corresponding checkbox is checked.

What is actually happening?

Browser complains that it cannot convert Symbol to a string: Cannot convert a Symbol value to a string.

System Info

No response

Any additional comments?

No response

@LinusBorg
Copy link
Member

closing this in favor of your previous issue

@mitar
Copy link
Author

mitar commented Mar 26, 2024

OK. But I think the other one is maybe a special case of this one, but not necessary. I think codepath for array handling is different than true-value/false-value handling?

@mitar
Copy link
Author

mitar commented Mar 26, 2024

Link to the other issue: #10597

@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants