Hi,
I want to trigger an itemClick event on a tree item, but I need to distinguish between Left and Right Clicks.
I discovered that $(‘#myTree’).on(‘itemClick’, MyFuncion) only fires on a left mouse click, not on a right click.
So I tried $(‘#myTree’).on(‘mouseup’, ‘li’, MyFuncion) and also $(document).on(‘mouseup’, ‘#myTree li’, MyFunctiom)
Both the above work, but for some reason are getting triggered twice for every mouseup event and I cannot figure out why.
Is this likely to be anything to do with the widget itself setting another event handler – or I just need to be looking elsewhere? Any suggestions would be helpful.
Thanks