Convert crud_component.vue to use v-show when collapsing
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Consider simplifying the crud_component.vue by converting the conditional rendering to use v-show instead of the current v-if approach when collapsing content.
Context
Currently, the component uses conditional rendering with v-if and a keepAliveCollapsedContent prop to control whether collapsed content should be kept alive in the DOM. This could potentially be simplified by using v-show which would keep the content in the DOM but toggle visibility.
Proposal
- Replace the current conditional rendering logic with
v-show - Remove
keepAliveCollapsedContentoncev-showis the default behaviour - Update the component story to reflect the behaviour
Related
- Discussion thread: !212454 (comment 2895475391)
- Related MR: !212454 (merged)
Edited by 🤖 GitLab Bot 🤖