JS - Avoid the Stay/Leave popup when clicking on a button with a JS action

- it aims to fix #14039.
This commit is contained in:
Calixte Denizet 2021-09-17 21:04:04 +02:00
parent 7082ff9bf8
commit e87c12bf34

View File

@ -502,6 +502,10 @@ class LinkAnnotationElement extends AnnotationElement {
return false;
};
}
if (!link.onclick) {
link.onclick = () => false;
}
link.className = "internalLink";
}
}