You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is Vue 3 even doing this to begin with? It seems to be a convenience feature that was introduced intentionally (there's a test for it), but it's a breaking change:
In Vue 2, <div :id.prop="null" /> would result in an element with ID "null", in line with the normal DOM API where the value is automatically stringified (for better or worse). Only attributes had special treatment, where null or undefined meant removing the attribute.
Version
3.0.0-beta.4
Reproduction link
https://codepen.io/21stCenturyJonas/pen/JjYNjZX
Steps to reproduce
<video srcObject.prop="null">
templateWhat is expected?
Set the
srcObject
of the video dom tonull
.What is actually happening?
It is trying to set it to
''
.Error came from here
https://github.com/vuejs/vue-next/blob/0bb1f67d12b4a7d7ae2fe1d94883333bf736aa13/packages/runtime-dom/src/modules/props.ts#L35
The text was updated successfully, but these errors were encountered: