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:
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,