Should not handle anything if multi-select is not enabled

I’ve found you added some code to fix below issues in 6.1.7
* Fix bug in the [Multiselect extension](https://docs.dhtmlx.com/gantt/desktop__multiselection.html) which caused selected tasks to lose highlight after chart repaint

But it causes another issue !! I can not get task item selected, cause isSelected method is replaced with multi-selected ext.

image

It is SO FRUSTRATED when you deliver code that is not full tested and have low quality, it causes us too much issues, this is how you deliver you product?

You should really check multi-selected is turned on or off !!!

Hello Kevin,
Even without the multiselect extension, you can still check if the task is selected by using the isSelectedTask method:
https://files.dhtmlx.com/30d/02e8fe92fba4054566deb25057352ef3/vokoscreen-2019-08-15_12-25-15.avi
https://snippet.dhtmlx.com/3a7e741de

Please, give me more details about the use case and reproduce the issue in the snippet, then click on the “Share” button and send me the link:
https://snippet.dhtmlx.com/3a7e741de

reproduce steps:

  1. include the multi-select ext
  2. turn off the multi-select by set the: gantt.config.multiselect = false
  3. click on task row to select task
  4. boom! you can not select your task by click on the task row

demo, here you go: http://snippet.dhtmlx.com/6b31d1e85

No response? WHY…?

Hello Kevin,

Thank you for the clarification and for sending the snippet.
I added the bug in the tracker, the dev team will fix it in future versions, sorry for the inconvenience. Unfortunately, I cannot give you any ETA.

As a workaround, you can disable multiple task selection by using the onBeforeTaskSelected event handler:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskselected_event.html
You can unselect a task after clicking on another task so that you will have only one task selected. Here is the snippet:
http://snippet.dhtmlx.com/c9b0169b1

No response? WHY…?

The questions on the forum have a lower priority than the questions submitted in the support system. You can do that according to the instructions from the email with the license.

1 Like

Hello Kevin,
The dev team fixed the bug when there is no way to select a task when the multiselect option is disabled.
Please note, that now you need to remove all DHTMLX Gantt Javascript file extensions and turn them on via the plugins method:
https://docs.dhtmlx.com/gantt/whatsnew.html#x4465x70x4466x
https://docs.dhtmlx.com/gantt/api__gantt_plugins.html
You can see that the bug is not reproduced in the following sample:
http://snippet.dhtmlx.com/5/980eb37a0