Hey there,
I'm using the Dialog widget and want to prevent the close button from changing the `window.location`.
So I use the following code to achieve it:
01.dialogConfig = {02. 03. // ...04. 05. close: function(e) {06. console.log("close clicked");07. e.preventDefault(true);08. }09.}I ran the code in the debugger and the preventDefault() call is indeed fired. Still, the window.location changes to '#' which changes the route in my Angular web app.
Any help appreciated.
Thanks & Cheers,
Constantin