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:
parent
7082ff9bf8
commit
e87c12bf34
@ -502,6 +502,10 @@ class LinkAnnotationElement extends AnnotationElement {
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!link.onclick) {
|
||||||
|
link.onclick = () => false;
|
||||||
|
}
|
||||||
link.className = "internalLink";
|
link.className = "internalLink";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user