mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #14890 from calixteman/14889
[JS] Formatted value has to be a string when neither null nor undefined
This commit is contained in:
commit
38c82357b2
2 changed files with 4 additions and 2 deletions
|
@ -1532,6 +1532,8 @@ class WidgetAnnotation extends Annotation {
|
|||
}
|
||||
}
|
||||
|
||||
assert(typeof value === "string", "Expected `value` to be a string.");
|
||||
|
||||
value = value.trim();
|
||||
|
||||
if (value === "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue