Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Header cell collapses when resizable set to true and promoted to staging environment

未关闭
#3,463 19 条评论 12 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
react, typescript
领域
frontend

调研方向

从 issue 中链接的 quick-start 示例开始,将 resizable: true 添加到 DataGrid 的列数据或 defaultColumnOptions 中。比较本地环境和 staging 环境中的行为,并找出为什么表头单元格只有在部署后才会折叠;当表头在两个环境中都展开并填满列时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Describe the bug

When resizable is set to true the columns work as intended but only locally. When the code is deployed to staging environment the header cells shrink. The same problem is seen with code from quick start and other examples.

To Reproduce

  1. Apply the code from the quick start page but include 'resizable: true' in column data. Alternatively set 'resizable: true' in defaultColumnOptions within the DataGrid component.
  2. Run locally and confirm expected behavior.
  3. Deploy to staging environment, header cell will have collapsed.

Link to code example:

https://www.npmjs.com/package/react-data-grid/v/7.0.0-beta.42 for quick start code

What the header cell looks like in local dev environment:
local

What the header cell looks like in staging environment:
staging

Expected behavior

Header cell should expand to fill the entire width of the column. Expected behavior is seen in local environment but not in staging.

Environment

  • react-data-grid version: 7.0.0.beta42
  • react/react-dom version: 18.2.0

Additional context

主要语言
TypeScript
星标
7.7k
派生
2.2k
平均合并
1 天 2 小时
30 天内合并 PR
24

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Comcast/react-data-grid 的其他 Issue

查看 Comcast/react-data-grid 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。