1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Guess that a checkbox belongs to a group in using its T value (bug 1838855)

This commit is contained in:
Calixte Denizet 2023-06-16 18:45:09 +02:00
parent 04c31a55d2
commit 5c0054d58d
5 changed files with 76 additions and 4 deletions

View file

@ -1530,6 +1530,17 @@ class WidgetAnnotation extends Annotation {
if (data.fieldName === undefined) {
data.fieldName = this._constructFieldName(dict);
}
if (
data.fieldName &&
/\[\d+\]$/.test(data.fieldName) &&
!dict.has("Kids")
) {
data.baseFieldName = data.fieldName.substring(
0,
data.fieldName.lastIndexOf("[")
);
}
if (data.actions === undefined) {
data.actions = collectActions(xref, dict, AnnotationActionEventType);
}