Gantt today marker cannot be deleted

Hello,

I want to put a today marker on my view.
The problem is that i display only a page(depending on the scale) of the diagram, for example at the init :

  • config.start_date = 1 april 2025
  • config.end_date = 30 april 2025
    Then i have next/previous page buttons that switch page (here month), so if i click next the config is :
  • start_date = 1 may 2025
  • end_date = 31 may 2025

Unfortunately, the today marker stays on the screen and i cant delete it.
Here is my code :

Hello,
I tried it in a simple example — the marker is removed as it should:
https://snippet.dhtmlx.com/ibkb7r83

Can you send a test demo where the issue can be reproduced?

Hello, thanks for your reply.
My code is very similar to yours.
But there is something weird, i tried adding the marker from the console and nothing happened :

Hello,
Unfortunately, it’s hard to say what might be causing the issue without seeing your full configuration. I tried adding the marker through the console, and it seems to work fine on my end. Here’s a video:
https://files.dhtmlx.com/30d/a8828a46b2058096858cff775a1c9362/2025-04-22_23-27-44.mp4

Hello,
here is the config part of my code.
gantt_config.txt (24.5 KB)

Hello,
Thanks for sending your configuration.
I used it, and everything seems to work fine — here’s an example: DHTMLX Snippet Tool
Could you please check if the issue is reproduced for you in this snippet?