fix(runtime): make form defaults post declaratively

req: form/002

req: examples/005

req: convention/004
This commit is contained in:
slhx agent
2026-05-11 08:55:08 +02:00
parent 5c1dc853d8
commit 63b559edb8
4 changed files with 8 additions and 3 deletions
@@ -16,7 +16,7 @@
<section class="workspace">
<aside class="command-card">
<h2>Create an issue</h2>
<form id="launch-work" data-slhx-handle="launch_work" data-slhx-form="launch_work" data-slhx-disable-while-pending>
<form id="launch-work" method="post" data-slhx-handle="launch_work" data-slhx-form="launch_work" data-slhx-disable-while-pending>
<input type="hidden" name="__h" value="539242093">
<label>Title <input name="title" required="required" value="Ship typed effects"></label>
<label>Lane
@@ -27,7 +27,7 @@
</select>
</label>
<label>Impact <input name="impact" type="number" min="1" max="9" value="7"></label>
<button class="primary-action" type="button" data-slhx-handle="launch_work">Create issue</button>
<button class="primary-action" type="button" form="launch-work" data-slhx-handle="launch_work" data-slhx-on="click">Create issue</button>
</form>
<div class="quick-actions">
<button type="button" data-slhx-handle="simulate_push">Simulate server push</button>