Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by PY on May 13, 2008 03:15
open dhtmlx forum
close sub-menu

The sub menu is not close when I click on other frames in the same window. What can I do?
Answer posted by Support on May 13, 2008 09:31
The component control onclick event only in its own frame, you can add next code to any subframes to resolve issue

dhtmlxEvent(document.body,"click",function(){
    if (top.onclick) top.onclick();
})

It will cause fire event in top frame, so menu will be able to catch it