vuejs / core

đź–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

Home Page:https://vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mitar opened this issue · comments

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

closing this in favor of your previous issue

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?

Link to the other issue: #10597