Fixed #5495 - Stepper: changing step is making the StepperPanel a render

pull/5513/head
tugcekucukoglu 2024-04-01 11:42:48 +03:00
parent dad9f1b106
commit cc03995656
1 changed files with 1 additions and 3 deletions

View File

@ -35,7 +35,6 @@
</slot> </slot>
<slot v-if="index !== stepperpanels.length - 1" name="separator"> <slot v-if="index !== stepperpanels.length - 1" name="separator">
<StepperSeparator <StepperSeparator
v-if="index !== stepperpanels.length - 1"
:template="step.children?.separator" :template="step.children?.separator"
:separatorClass="cx('stepper.separator')" :separatorClass="cx('stepper.separator')"
:stepperpanel="step" :stepperpanel="step"
@ -50,7 +49,7 @@
<div :class="cx('panelContainer')" v-bind="ptm('panelContainer')"> <div :class="cx('panelContainer')" v-bind="ptm('panelContainer')">
<template v-for="(step, index) of stepperpanels" :key="getStepKey(step, index)"> <template v-for="(step, index) of stepperpanels" :key="getStepKey(step, index)">
<StepperContent <StepperContent
v-if="isStepActive(index)" v-show="isStepActive(index)"
:id="getStepContentId(index)" :id="getStepContentId(index)"
:template="step?.children?.content" :template="step?.children?.content"
:stepperpanel="step" :stepperpanel="step"
@ -103,7 +102,6 @@
<div v-show="isStepActive(index)" :class="cx('stepper.toggleableContent')" v-bind="getStepPT(step, 'toggleableContent', index)"> <div v-show="isStepActive(index)" :class="cx('stepper.toggleableContent')" v-bind="getStepPT(step, 'toggleableContent', index)">
<slot v-if="index !== stepperpanels.length - 1" name="separator"> <slot v-if="index !== stepperpanels.length - 1" name="separator">
<StepperSeparator <StepperSeparator
v-if="index !== stepperpanels.length - 1"
:template="step.children?.separator" :template="step.children?.separator"
:separatorClass="cx('stepper.separator')" :separatorClass="cx('stepper.separator')"
:stepperpanel="step" :stepperpanel="step"