Subscribe on changes!

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

avatar
Oct 4th 2020

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.