diff --git a/docassemble/ALToolbox/ThreePartsDate.py b/docassemble/ALToolbox/ThreePartsDate.py index e5a2d69..c4a256d 100644 --- a/docassemble/ALToolbox/ThreePartsDate.py +++ b/docassemble/ALToolbox/ThreePartsDate.py @@ -528,7 +528,8 @@ return date_input >= min_date; }}, function alMinMessage (validity, field) {{ - /** Returns the string of the invalidation message. */ + /** Returns the string of the invalidation message, or blank string for + * safety and consistency with alMaxMessage. */ let min_attr = get_$original_date(field).attr('data-alMin') || ""; let min_date = new Date(min_attr.replace(/-/g, '/')); let locale_long_date = min_date.toLocaleDateString(undefined, {{ day: '2-digit', month: 'long', year: 'numeric' }});