Merge pull request #19855 from 1Jesper1/hotfix/useractivation-response

Add useractivation check for response function
This commit is contained in:
calixteman 2025-04-28 13:14:51 +02:00 committed by GitHub
commit 2e10ff6dd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -607,6 +607,11 @@ class App extends PDFObject {
}
response(cQuestion, cTitle = "", cDefault = "", bPassword = "", cLabel = "") {
if (!this._document.obj._userActivation) {
return null;
}
this._document.obj._userActivation = false;
if (cQuestion && typeof cQuestion === "object") {
cDefault = cQuestion.cDefault;
cQuestion = cQuestion.cQuestion;