Skip to content

Commit 1a567e6

Browse files
jeremymanningclaude
andcommitted
Fix: exclude signature section labels from PDF checklist
The PDF was including 'Sign below' and 'Date' labels from the signature section. Changed selectors to only query labels within .checklist-item elements, not the entire .interactive-checklist. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 34324b1 commit 1a567e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

checklist.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ function createPDF(dateValue) {
581581
doc.text(introText, leftMargin, yPos);
582582
yPos += 10;
583583

584-
// Checklist items with checkbox symbols
585-
var checkboxes = document.querySelectorAll('.interactive-checklist input[type="checkbox"]');
586-
var labels = document.querySelectorAll('.interactive-checklist label');
584+
// Checklist items with checkbox symbols (only from .checklist-item, not signature section)
585+
var checkboxes = document.querySelectorAll('.interactive-checklist .checklist-item input[type="checkbox"]');
586+
var labels = document.querySelectorAll('.interactive-checklist .checklist-item label');
587587

588588
doc.setFontSize(10);
589589
labels.forEach(function(label, index) {

0 commit comments

Comments
 (0)