olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.76k stars 821 forks source link

Error When Only Frozen Columns Are Present and renderHorizontal is Enabled #4600

Open kunaljaykam opened 1 month ago

kunaljaykam commented 1 month ago

Describe the bug When only frozen columns are present in the DOM and the renderHorizontal option is enabled in Tabulator, an error is thrown during table rendering. The issue might be arises because the system attempts to access non-existent unfrozen columns, causing a crash.

Tabulator Info

Working Example https://jsfiddle.net/uwaj5Lgt/

To Reproduce A step by step guide to recreate the issue in your JS Fiddle or Codepen:

  1. You should have only frozen columns and renderHorizontal should be enable.
  2. Go to provided jsfiddle link
  3. Run
  4. Check the console error.

Expected behavior It shouldn't throw an error

Screenshots image

Desktop (please complete the following information):

Additional context I would be more than happy to do a PR for this Issue. Thanks.