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
Bind v-show to a non-boolean truthy value (such as a number or string).
Periodically change the value to a different truthy value.
v-show triggers the enter transition every time the value changes.
What is expected?
v-show should not do anything. The element's classes should not change.
What is actually happening?
v-show triggers the enter transition every time the value changes even though the value remains truthy.
This causes the element to momentarily have the v-enter and v-enter-active classes which triggers the CSS transition very briefly. This is especially noticeable in Safari.
v-show should check if !oldValue === !newValue (or Boolean(oldValue) === Boolean(newValue)) instead of oldValue === newValue to see if a transition should not occur.