Commit 958c1c9
[Bug Fix] Emit type="button" for any non-anchor TabsTrigger
Tie the `type="button"` attribute to the element actually rendered
(`unless @as == :a`) instead of an exact `@as == :button` check. An
unexpected/mistyped `as:` value fell through to the `<button>` branch
without a type, which defaults to `type="submit"` and could trigger
accidental form submission. Issue identified by cubic.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3c429f6 commit 958c1c9
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
0 commit comments