Skip to content

Commit

Permalink
Fix storage getter name for textfields
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Jul 23, 2020
1 parent 03ba26f commit bbbf4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/annotation_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bbbf4d4

Please sign in to comment.