1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #13764 from Snuffleupagus/issue-13748

XFA - Add a missing method to `XFAAttribute`, to prevent breaking errors (issue 13748)
This commit is contained in:
Jonas Jenwald 2021-07-20 18:55:23 +02:00 committed by GitHub
commit 6c9b6bc599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View file

@ -745,6 +745,10 @@ class XFAAttribute {
return true;
}
[$getDataValue]() {
return this[$content].trim();
}
[$setValue](value) {
value = value.value || "";
this[$content] = value.toString();