You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple v-else directives silently ignored after v-if #13698
Add one or more additional v-else elements after that.
Only the last v-else is recognized. The rest are silently ignored.
What is expected?
This syntax should either:
throw a compile-time error, or
trigger a warning, or
at the very least, be caught by the Vue ESLint plugin as invalid usage.
Allowing multiple v-else blocks after a single v-if is logically invalid and likely always unintentional. It can lead to subtle bugs and confusion during development.
What is actually happening?
No errors or warnings are shown. Only the last v-else is used, and the rest are ignored without any indication.
This makes it easy to introduce bugs, especially in larger templates or when components are modified over time.
Activity
fix(compiler-core): adjacent v-else should cause a compiler error (#1…