Commit 3f7d0dd
fix(SigningRequirementValidator): require drawing even without placed elements
needsCreateSignature previously required visibleElements.some(...) to be true,
meaning it only triggered when the document had a pre-placed visual element box
for the signer. With GRAPHIC_ONLY render mode (canCreateSignature=true) and no
placed box, the check always returned false and the drawing prompt was never
shown.
Fix: when signerHasSignRequest=true is provided, return true immediately after
confirming the signer has a signRequestId — the visual box placement is
irrelevant for deciding whether to ask for a drawing.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent bd7b017 commit 3f7d0dd
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | | - | |
| 119 | + | |
115 | 120 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
122 | 131 | | |
123 | 132 | | |
0 commit comments