-
-
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
.prop
is casting null-ish values to empty strings
#1049
Comments
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, |
FYI: there is no A result of this is that |
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: