Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
marcusds opened this issue Oct 4, 2020 · 0 comments · Fixed by #2305
Closed

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

marcusds opened this issue Oct 4, 2020 · 0 comments · Fixed by #2305
Labels
🐞 bug Something isn't working

Comments

@marcusds
Copy link

marcusds commented Oct 4, 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.

@posva posva added the 🐞 bug Something isn't working label Oct 5, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants