Toggling columnSort plugin

Tags: #<Tag:0x00007efc64eb6808> #<Tag:0x00007efc64eb66c8>

Hello there,

I’m working with one of my client on handsontable-pro@1.13.0 which is very old.

We decided to migrate to the latest version of handsontable which is handsontable@11.1.0.

But we have a little regression on one functionality that was being able to enable/disable columnSort plugin.

Back then we were able to do it without any problem.

Here is a demo of the problem:

Steps to reproduce:

  1. Sort “Country” column
  2. Click on toggle button above the datagrid. This will disable the ability to sort.
  3. Click again on the button. This will re enable the column sorting.
  4. Sort the “Country” column again.
  5. Click on the button to disable the sorting.

You will get this error :

Can you confirm that this is a regression ?

Thank you for sharing the issue report @obraik91

You are right. That is a regression that was introduced in Handsotable v8 and remains broken in the latest version.

I simplified the case and reported it on our official Github board at https://github.com/handsontable/handsontable/issues/9207

I’ve also made a connection to this forum topic so I’ll be able to notify you as soon as we fix this issue.

Thanks for the fast response @aleksandra_budnik !

Sorry for keeping you waiting, @obraik91

I can confirm that the issue is solved now. Here: https://jsfiddle.net/0bdtqc5e/. We can test with the new version.