Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'sticky' of undefined when using depth more than 1 #12

Closed
hardikmodha opened this issue Jun 6, 2020 · 0 comments · Fixed by #13
Closed

Cannot read property 'sticky' of undefined when using depth more than 1 #12

hardikmodha opened this issue Jun 6, 2020 · 0 comments · Fixed by #13

Comments

@hardikmodha
Copy link
Contributor

hardikmodha commented Jun 6, 2020

react-table-sticky fails with an error

Cannot read property 'sticky' of undefined

when using headergroups with depth having more than 1.

{
  "id": "name_details_container",
  "Header": "Name Details",
  "sticky": "left",
  "Footer": "Name Details",
  "columns": [
    {
      "Header": "Name",
      "Footer": "Name",
      "columns": [
        {
          "Header": "First Name",
          "Footer": "First Name",
          "accessor": "firstName"
        },
        { 
          "Header": "Last Name", 
	  "Footer": "Last Name", 
          "accessor": "lastName" 
        }
      ]
    }
  ]
}

Following is a reproducible example:

https://codesandbox.io/s/react-table-sticky-official-r4hjg?file=/src/App.js

hardikmodha added a commit to hardikmodha/react-table-sticky that referenced this issue Jun 6, 2020
GuillaumeJasmin added a commit that referenced this issue Jul 13, 2020
Allow headergroups having depth more than 1. Fixes #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant