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 have multiple v-else-if blocks (form-steps) on my template, all have a Switch at the exact same spot with a different binding, when I go to the next form-step, my binding gets overwritten by the new value.
Expected behaviour
Bound Switch values don't get overwritten if I change steps.
Experienced behaviour
Bound Switch values get overwritten if an other v-else-if block gets displayed.
The same occurs with inline properties as margin, alignment etc... I'm using a workaround by using a delay with this.$nextTick to change steps and setting them to null first.
Try using unique keys on your layouts - that should work too.
I don't know why this happens, but I've seen it before when vue tries to reuse existing elements, and some things break. It's likely a bug in our renderer.
Description
I have multiple v-else-if blocks (form-steps) on my template, all have a Switch at the exact same spot with a different binding, when I go to the next form-step, my binding gets overwritten by the new value.
Expected behaviour
Bound Switch values don't get overwritten if I change steps.
Experienced behaviour
Bound Switch values get overwritten if an other v-else-if block gets displayed.
Versions & platform
Platforms: Android & iOS
Nativescript-vue: 2.5.0
Nativescript-core: 6.5.0
Snippet
The value of "departure" gets overwritten by "arrival" when I go to step 1.
The text was updated successfully, but these errors were encountered: