Skip to content

Template compilation error: if/else with spaces between elements does not work #2299

Closed
@marcusds

Description

@marcusds

Version

3.0.0

Reproduction link

https://jsfiddle.net/p5x249rd/1/
template-explorer

Steps to reproduce

Have an if/else on elements that are separated by a space on the same line.

What is expected?

The if/else functions correctly, showing only the if/elseif/else that it should instead of all of them and no warning returned

What is actually happening?

You get the error: Template compilation error: v-else/v-else-if has no adjacent v-if.
And the if/elses aren't handled properly.

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