react-component / react-component/table

Using custom HeaderCell causes an error

Open
#384 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

Using custom HeaderCell causes an error:
TypeError: Cannot read property 'render' of undefined

I tried to use custom components and when I added custom header cell it caused an error
the same error can be seen in the rc-table Storybook:
http://react-component.github.io/table/?selectedKind=rc-table&selectedStory=column-resize&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Fsource%2Fpanel

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the error in the linked rc-table Storybook column-resize story with a custom HeaderCell. Trace the undefined value behind the render access and confirm the story works without the TypeError when the issue is resolved.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.