From 088142734cfc00ddb67512cb376d97ceb89fbb76 Mon Sep 17 00:00:00 2001 From: jingeli Date: Sat, 27 Jan 2024 22:08:09 -0600 Subject: [PATCH] PPF-469: hopefully can find a template someday --- PyPDFForm/middleware/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPDFForm/middleware/template.py b/PyPDFForm/middleware/template.py index b39ac711..31349499 100644 --- a/PyPDFForm/middleware/template.py +++ b/PyPDFForm/middleware/template.py @@ -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