Menu: disabled item calls link when clicked

Hello!

 <item id="pdf1" text="Ticket als PDF-Datei exportieren" img="pdf.gif" imgdis="pdf_dis.gif"><href><![CDATA[TroubleTicketsNGExportPDF.php]]></href></item>

I try to disable this item:

menu.setItemDisabled("pdf1");

This works fine - the item is disabled (gray) and displaying imgdis, BUT:

when I click on the item, the link (e.g. TroubleTicketsNGExportPDF.php) is called.
When I disable an item, I don´t want the link to be called.

Any suggestions?

Thanks
Digo

Hello,

we have fixed the problem. The fixed library is attached
dhtmlxmenu.zip (17.5 KB)

Thanks for your support!

It works fine!

Digo