diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index 157058b9c6b8e3..52b45dc5209022 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -449,7 +449,7 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { // NOTE: We cannot set the values using `element.value` below, since it // prevents the AnnotationLayer rasterizer in `test/driver.js` // from parsing the elements correctly for the reference tests. - const textContent = storage.getOrCreate(id, this.data.fieldValue); + const textContent = storage.getOrCreateValue(id, this.data.fieldValue); if (this.data.multiLine) { element = document.createElement("textarea");