Stepper: Nested Components are re-mounted #6052
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the Stepper component and its associated components (StepPanels, etc.), nested components are being re-mounted when navigating steps.
Possibly, each StepPanel is being re-mounted even for non-nested components, but since the ref variable is located in the parent component, then it appears like it is not being re-mounted.
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-nxw9yy?file=src%2FApp.vue
PrimeVue version
4.0.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Chrome, Safari
Steps to reproduce the behavior
See StackBlitz.
Essentially, create a component and then nest it in the StepPanel. When navigating steps, the component is being re-mounted/re-rendered.
Expected behavior
Ideally, StepPanels should only show/hide the nested components as otherwise, all form information could possibly be lost.
The text was updated successfully, but these errors were encountered: