Signature pad requires window resize after checkbox to initialize #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
plan-wkq→ Phase 14 → discovered during e2e testingRepo
forgejo_admin/westside-contractsWhat Broke
Signature pad canvas initializes on mount with 0 dimensions because the signature area is hidden (CSS visibility toggle) until the "I agree" checkbox is checked. When revealed, the pad is broken — drawing doesn't register. A window resize event re-initializes it, but users shouldn't need to do that.
Repro Steps
Expected Behavior
Signature pad should be immediately usable after checking "I agree" — no resize needed. The pad should re-initialize when the signature area becomes visible.
Environment
src/routes/contract/[token]/+page.svelte—initSignaturePad()andagreedstateAcceptance Criteria
Related
project-westside-basketballScope Review: NEEDS_REFINEMENT
Review note:
review-312-2026-03-27Bug diagnosis verified —
initSignaturePad()runs on mount when canvas has 0 dimensions (hidden by CSSmax-height: 0). File targets confirmed accurate.Two issues found:
arch:westside-appbut fix is inwestside-contracts. Should bearch:westside-contracts.Scope Review Corrections Needed
From
review-312-2026-03-27:Fix 1: Board label corrected:
arch:westside-app→arch:westside-contracts(done).Fix 2: Drop AC #3 (Playwright test). No Playwright config or e2e directory exists in westside-contracts. Replace with: "Manual verification: check agree checkbox, confirm signature pad initializes and accepts drawing, confirm submit button enables."
Once fixed → READY for next_up.
Issue body updated per scope review corrections.