primefaces / primefaces/primereact
Stepper: Inactive steps removed from DOM
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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