Hello,
I found a case in which I have chart overlay turned on, when I hover over the chart and then turn off the overlay, gantt remains in readonly mode. When I turn it off in the browser console, it shows that it is false until I click on another entry and it changes to true again.
Hello Wojak,
I couldn’t reproduce that issue in the official sample:
https://files.dhtmlx.com/30d/141d2f3a62de3b29bdd67e717d08ff68/vokoscreen-2024-01-15_13-09-30.mp4
Probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please add your configuration to the following snippet and make sure that the issue is reproduced there:
Then, click on the Save
button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.
https://snippet.dhtmlx.com/zefaj51n
In this sample if you click on chart while its open. After hiding chart you cant open lightbox.
Hello Wojak,
Thank you for sharing the snippet.
I was able to reproduced it with the simplified configuration:
https://snippet.dhtmlx.com/pnqj6c3r
It seems to be related to the drag_timeline
extension. If you click on the overlay or drag the timeline, Gantt doesn’t finish the timeline drag. So, when you hide the overlay, something doesn’t work.
If you drag the timeline immediately after hiding the overlay, it should help to disable the read-only mode.
I added it as a bug to our internal bug tracker. The dev team will fix it in the future, but I cannot give you any ETA.
The only workaround I found is to add the overlay in the onGanttReady
event handler and reinitialize Gantt when you hide the hide the overlay:
https://snippet.dhtmlx.com/q86ns9jf
With the init soulution is works perfectly. Thanks for fast response