Update StepPanel.vue with v-show rather than v-if for horizontal steps.

Bug fix for StepPanel.vue so that v-show is used rather than v-if. v-show is desired as the Stepper should not be re-rendering components.
pull/6054/head
rickngo 2024-07-12 00:33:09 -06:00 committed by GitHub
parent 3c27c325a5
commit e2abf5f974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
</template> </template>
<template v-else> <template v-else>
<template v-if="!asChild"> <template v-if="!asChild">
<component v-if="active" :is="as" :id="id" :class="cx('root')" role="tabpanel" :aria-controls="ariaControls" v-bind="getPTOptions('root')"> <component v-show="active" :is="as" :id="id" :class="cx('root')" role="tabpanel" :aria-controls="ariaControls" v-bind="getPTOptions('root')">
<slot :active="active" :activateCallback="(val) => updateValue(val)" /> <slot :active="active" :activateCallback="(val) => updateValue(val)" />
</component> </component>
</template> </template>