Merge pull request #10350 from Snuffleupagus/sig-fieldValue-null
Ignore the `fieldValue` for Signature annotations, since they're currently unsupported (issue 10374)
This commit is contained in:
commit
fc607e35de
@ -613,8 +613,11 @@ class WidgetAnnotation extends Annotation {
|
||||
|
||||
data.readOnly = this.hasFieldFlag(AnnotationFieldFlag.READONLY);
|
||||
|
||||
// Hide signatures because we cannot validate them.
|
||||
// Hide signatures because we cannot validate them, and unset the fieldValue
|
||||
// since it's (most likely) a `Dict` which is non-serializable and will thus
|
||||
// cause errors when sending annotations to the main-thread (issue 10347).
|
||||
if (data.fieldType === 'Sig') {
|
||||
data.fieldValue = null;
|
||||
this.setFlags(AnnotationFlag.HIDDEN);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user