A checkbox with `:checked="true"` ( controlled checkbox ) doesn't work
Vue version
3.2.27
Link to minimal reproduction
Steps to reproduce
<template>
<input type="checkbox" :checked="true" />
</template>
What is expected?
The checkbox should be always checked because prop checked
is always true
What is actually happening?
The checkbox is unchecked after I click it
System Info
N/A
Any additional comments?
The same behavior for
<input value.prop="test" />
<input type="range" :value.prop="10" />
Nothing works
It’s expected as Vue doesn’t support fully controlled native inputs. There’s already an RFC about this here.