Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

rickngo
Copy link
Contributor

@rickngo rickngo commented Jul 12, 2024

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.

###Defect Fixes
Fixes #6052

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.
Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Jul 12, 2024 6:35am
primevue-v3 ⬜️ Ignored (Inspect) Visit Preview Jul 12, 2024 6:35am

@rickngo rickngo marked this pull request as ready for review July 12, 2024 06:36
@antlionguard
Copy link
Contributor

using v-show affects performance. v-show causes to load unused step components. generally users do not use all steps every time.

@rickngo
Copy link
Contributor Author

rickngo commented Jul 12, 2024

#5495 addresses this issue as well and it was updated to v-show in v3.

Isn't the point of the stepper to go through all the steps, especially if you are using linear? And especially for forms, information in other steps need to persist so it can all be sent to the database. v3 Stepper loaded all components, so this is a new unexpected behaviour in v4.

Also, then why does vertical use v-show? That seems inconsistent to me.

Maybe if someone wants to do build this feature out, there could be an option to determine whether to load the step or not.

@tugcekucukoglu tugcekucukoglu merged commit 3c67dd4 into primefaces:master Jul 22, 2024
3 of 4 checks passed
@rickngo rickngo deleted the patch-1 branch July 22, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stepper: Nested Components are re-mounted
3 participants