Skip to content

Commit

Permalink
stephanrauh/ngx-extended-pdf-viewer#1516 fix broken two-way binding o…
Browse files Browse the repository at this point in the history
…f forms (work in progress)
  • Loading branch information
stephanrauh committed Aug 30, 2022
1 parent 8313670 commit 0e43541
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 @@ -1007,7 +1007,7 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement {
value: this.data.fieldValue,
});
let textContent = storedData.formattedValue || storedData.value || "";
const maxLen = storage.getValue(id, {
const maxLen = storage.getValue(id, this.data.fieldName, { // #718 modified by ngx-extended-pdf-viewer
charLimit: this.data.maxLen,
}).charLimit;
if (maxLen && textContent.length > maxLen) {
Expand Down

0 comments on commit 0e43541

Please sign in to comment.