Prevent default action on close dialog link