Skip to content

Internal Vue crash: v-if on component #910

Closed
@jods4

Description

@jods4

Version

3.0.0-alpha.10

Reproduction link

https://jsfiddle.net/3d2twLq9/1/

Steps to reproduce

Open the console, click on the button. Vue does some bad stuff.

What is expected?

v-if is replaced by v-else, no error

What is actually happening?

Stuff crashes, apparently because slot content is evaluated before v-if, which results in null dereferences and then bad stuff.


This minimal repro stays usable after the crash (you could set a new some value and recover).
My own app is more complex and is unusable after this bug.

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