Prevent from redirection

One of the menu buttons in my men (webix.ui.sidebar) should have custom behavior.
I can easliy add that with ‘attachEvent’, but app still wants to redirect to view which doesn’t exists…

How to prevent that ?

leftmenu.attachEvent("onItemClick", (id, event) => {
    event.peventDefault();
});

but sadly that doesn’t work…

Hello @michald1986,
By simply returning false you will prevent the click:

$$("sidebar").attachEvent("onItemClick", (id, e) => {
 e.preventDefault();
    return false;
});

Please check the next example:
https://snippet.webix.com/1n8qqcrv