Skip to content

Refs are set to null instead of undefined when components are destroyed in vue v2.7.0-alpha.5 #12554

@pdanpdan

Description

@pdanpdan

Version

2.7.0-alpha.5

Reproduction link

codepen.io

Steps to reproduce

Press the toggle button to cycle the ref

Working case with v2.6.14: https://codepen.io/pdanpdan/pen/QWQVXmr

Failing case with v2.7.0-alpha.5: https://codepen.io/pdanpdan/pen/JjpaQOP

What is expected?

this.$refs.test to be an element or undefined

What is actually happening?

this.$refs.test is null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions