patternfly / patternfly/patternfly-react
Bug - [Wizard] - Get current step examples breaks
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 862
- 派生
- 392
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 9
描述
Describe the problem
When clicking on Step 4 the get current step example breaks and throws the following error on the website
TypeError: Cannot read properties of undefined (reading 'status')
How do you reproduce the problem?
Go to https://www.patternfly.org/components/wizard/#get-current-step, click on Step 4 in the example
Screenshots
https://github.com/user-attachments/assets/29913289-6612-4f6c-84a6-89fa79c98d0d
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 https://www.patternfly.org/components/wizard/#get-current-step 上的 Wizard 文档,并在示例中点击 Step 4 以复现问题。跟踪 get-current-step 示例及其对 current-step 的处理,找出示例在读取 status 时抛出错误的原因。当 Step 4 在没有 TypeError 的情况下渲染,并且示例继续正确显示当前步骤时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 48/100