Commit 1ca5ac4
authored
fix: tabbed-code radio rendering crashes Arizona renderer (#44)
Returning {input, Attrs, []} from a function called via ?each
bypasses Arizona's parse transform, and the runtime renderer's
to_bin/1 doesn't accept the 3-tuple void-element form. This took
down the homepage with a bad_template_value crash.
Inline the input tuple into the ?each lambda so the parse transform
compiles it directly, switch to the void-element 2-tuple shorthand
{input, Attrs}, and use {checked, N =:= 1} (Arizona strips false
boolean attrs at parse time) to keep first-tab-checked behaviour
without a second clause.1 parent eb56451 commit 1ca5ac4
1 file changed
Lines changed: 11 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 69 | | |
80 | 70 | | |
81 | 71 | | |
| |||
0 commit comments