Skip to content

Commit 80a6b4e

Browse files
Alexey Panfilovclaude
andcommitted
fix(adminapi): drop invalid hx-include="none" from assign buttons
htmx treats hx-include's value as a CSS selector; "none" isn't a selector and htmx logs a warning on every matching element. The assign buttons sit outside any <form>, so htmx wouldn't pull in extra fields anyway — the attribute was a defensive no-op that turned into console noise. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 335d818 commit 80a6b4e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/adminapi/templates/partials_models_row.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
hx-post="/slots/{{.Name}}/assign"
1212
hx-vals='{"model_id":"{{$modelID}}"}'
1313
hx-target="#routing-section"
14-
hx-swap="innerHTML"
15-
hx-include="none">
14+
hx-swap="innerHTML">
1615
{{if eq .ModelID $modelID}}✓ {{end}}→ {{.Name}}
1716
</button>
1817
{{end}}

0 commit comments

Comments
 (0)