Cancel link click if the user cancelled the confirmation request

On a standard link with a data-confirm attribute, we want to ensure that the click event is cancelled if the user cancels the confirmation.