-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
@vue/compat input type=radio value=false via Boolean not in DOM #11747
Comments
//Check well if this issue is in the latest Vue version// const selectedValue = ref(false) watch(selectedValue, (newValue) => { |
Thanks for the tip!
…On Fri, 30 Aug 2024 at 03:21, edison ***@***.***> wrote:
Note: The current behavior is inconsistent with vue2, so it should be a
bug.
—
Reply to this email directly, view it on GitHub
<#11747 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDII7FVHHE3IJXSRZZM7CV3ZT7JLNAVCNFSM6AAAAABNKUMM4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJZG4YDINZYGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue version
3.4.38
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-7cf2eb?file=src%2Fcomponents%2FRadioButton.vue
Steps to reproduce
input
does not have anyvalue
attributeWhat is expected?
value="false"
should be on theinput
What is actually happening?
Value seems to be dropped somewhere
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vue: 3.4.38 => 3.4.38
Any additional comments?
Note: it is not recommended that
Boolean
type is used as the value for a radio input and it should probably just be a String. However this is something that Vue should handled for us and without compat it does show up (see SFC playground).The text was updated successfully, but these errors were encountered: