Skip to content

Commit

Permalink
Merge pull request #470 from chinapandaman/PPF-469
Browse files Browse the repository at this point in the history
PPF-469: ignore 0 max length
  • Loading branch information
chinapandaman authored Jan 28, 2024
2 parents bfb9732 + 0881427 commit 5f55c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyPDFForm/middleware/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_widgets(pdf_stream: bytes) -> Dict[str, WIDGET_TYPES]:

if _widget is not None:
if isinstance(_widget, Text):
_widget.max_length = get_text_field_max_length(widget)
_widget.max_length = get_text_field_max_length(widget) or None
if _widget.max_length is not None and is_text_field_comb(widget):
_widget.comb = True

Expand Down

0 comments on commit 5f55c04

Please sign in to comment.