HoT crashes when enabling/disabling columnSorting

Tags: #<Tag:0x00007efc72f7c630> #<Tag:0x00007efc72f7c4f0>

this.indexesSequenceCache.getValues() seems to be returning null, resulting in Cannot read properties of null (reading ‘slice’) in columnSorting when disabling or enabling sorting?
This happens when sorting a column then deactivating columnSorting, reactivating it, and deactivating it once more. Handsontable verson 8.4.0

indexMap.js:88 Uncaught TypeError: Cannot read properties of null (reading ‘slice’)

  • at IndexesSequence2.setValues (indexMap.js:88:35)*
  • at IndexMapper2.setIndexesSequence (indexMapper.js:539:28)*
  • at ColumnSorting2.sortByPresetSortStates (columnSorting.js:740:33)*
  • at ColumnSorting2.sort27 (columnSorting.js:380:14)*
  • at ColumnSorting2.onAfterOnCellMouseDown (columnSorting.js:967:14)*
  • at Core. (columnSorting.js:286:23)*
  • at Hooks2.run (pluginHooks.js:2198:46)*
  • at Core.runHooks (core.js:4464:48)*
  • at Object.onCellMouseDown (tableView.js:812:27)*
  • at Settings3.getSetting (settings.js:190:33)*
  • at Walkontable2.getSetting (core.js:279:30)*
  • at Event3.onMouseDown (event.js:229:23)*
  • at HTMLDivElement. (event.js:133:24)*
  • at HTMLDivElement.callbackProxy (eventManager.js:70:18)*

Hi @vincentvs01

Thank you for contacting us. Can you please send a code demo in which the problem can be replicated? Also, it’s worth mentioning that 8.4.0 is quite outdated version at this point, the current one is 14.5.0 and we highly recommend upgrading as many bugs were solved between those versions.

Hi @vincentvs01

I need to close this ticket as it has been nearly three weeks without any response.

If the issue is still replicable, please create a new thread or contact us at support@handsontable.com.