[bug] wrong POST to server when calling setState

Hi,

I find a strage behavior of datatable.setState.
Please check this sample:
https://snippet.webix.com/i8se757q

There are 4 buttons to set different sorts on datatable.

Steps:

  1. Open F12 developer tools → network
  2. click on State1 button, one post to server
  3. click on State2 button, one post to server
  4. click on State3 button, two posts to server, first one with wrong parameters
  5. click on State2 button, two posts to server, first one with wrong parameters
  6. click on State4 button, two posts to server, first one with wrong parameters

It seems when setting multiple sort columns, there is a wrong post to server before the correct one.

Regards
Wicky

Hello, @wicky_hu_wq

That is a known issue. The fix will be available (in the next update).
Please, check the snippet below to find a tempered workaround.
https://snippet.webix.com/u2vk3ri3

Hi,

Thank you for the sample.
I will study.

Regards
Wicky