static non-attr bindings does not work in SSR
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
- Open minimal reproduction
What is expected?
checkbox is shown in indeterminate state like in non-SSR.
What is actually happening?
checkbox is shown in non-checked state.
System Info
No response
Any additional comments?
<input type="checkbox" :indeterminate="true">
doesn't work as well.
I think https://github.com/vuejs/core/issues/1128 is related.
I noticed this while checking whether props and attrs works differently in vue.
A checkbox cannot be set to indeterminate state by an HTML attribute - it must be set by a JavaScript. https://www.w3schools.com/jsref/prop_checkbox_indeterminate.asp
So ab immediate workaround would be to write a custom directive for this.
We can look into wether this warrants special handling in hydration.