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
I would either expect there to be an error of "incorrect use" of v-if and v-else on the same element or similar behaviour to a v-else-if instead of.. what's currently happening. I might have missed this in the documentation but I could not find any mention of this behaviour anywhere.
The text was updated successfully, but these errors were encountered:
Problem
When using
v-if
andv-else
on the same element it has weird behaviour.I am currently running Vue version 3.5.13
Example Code
Example:
will show
True 2
instead ofTrue
. Howeverwill show
True
.Using a v-else-if like this:
will show
True
as expected.Expected
I would either expect there to be an error of "incorrect use" of v-if and v-else on the same element or similar behaviour to a
v-else-if
instead of.. what's currently happening. I might have missed this in the documentation but I could not find any mention of this behaviour anywhere.The text was updated successfully, but these errors were encountered: