gridjs icon indicating copy to clipboard operation
gridjs copied to clipboard

Values in <th> are ignored when using the from option

Open kaptajnen opened this issue 2 years ago • 3 comments

Describe the bug If you use the from option with an existing HTML element when creating the grid, values in <th> elements inside the <tbody> are ignored. Remaining values are no longer aligned with their respective columns. See demo at https://codepen.io/kaptajnen/pen/PoEwBBj

To Reproduce Steps to reproduce the behavior:

  1. Create an HTML table with thead and tbody elements.
  2. Inside the tbody element, create rows where one or more of the columns uses th instead of a td
  3. Create a gridjs instance, using the from option in the constructor pointing to the table create above
  4. See that values that were in a th element are missing

Expected behavior Values in th elements should not disappear

Desktop:

  • OS: macOS
  • Browser: Chrome
  • Version: 99.0.4844.51

kaptajnen avatar Mar 14 '22 18:03 kaptajnen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 25 '22 23:05 stale[bot]

I guess this bug won't get fixed then?

kaptajnen avatar May 26 '22 00:05 kaptajnen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 30 '22 17:07 stale[bot]

Bump

kaptajnen avatar Aug 12 '22 23:08 kaptajnen