Call event.preventDefault() on notification action buttons

But allow you to specify that the event should not be prevented