Skip to content

.prop is casting null-ish values to empty strings #1049

Closed
@ycmjason

Description

@ycmjason

Version

3.0.0-beta.4

Reproduction link

https://codepen.io/21stCenturyJonas/pen/JjYNjZX

Steps to reproduce

  1. Create <video srcObject.prop="null"> template
  2. See the error

What is expected?

Set the srcObject of the video dom to null.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions