primefaces / primefaces/primereact

Stepper: Inactive steps removed from DOM

Open
#6,755 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Discussion
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

In the stepper, as well as many other components whose purpose is to hide/show content (accordion for instance), the hidden content is not simply hidden but also removed from the DOM. I don't see the logic in this decision, because in most use cases where any form of data persistence is required, these components cannot be used.

Similar issue here: https://github.com/primefaces/primereact/issues/6543

Reproducer

No response

PrimeReact version

10.6.6

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

Stepper and other components whose purpose is to hide/show content should not remove content from the DOM, but simply hide it, in order to make these components usable 100% of the time.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or reproduction steps are provided. Start by reproducing the Stepper behavior with PrimeReact 10.6.6, React 18, and Vite, then inspect the Stepper implementation and related hide/show components. Done means inactive step content remains in the DOM while being hidden, with tests covering the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript, vite
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.