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:
parent
04c31a55d2
commit
5c0054d58d
5 changed files with 76 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue