Skip to content

Fix Device Presets edit saving as a stale create, throwing "name is required"

Aiho Tehisaru requested to merge fix/preset-edit-htmx-boost-stale-action into trunk
's hx-boost binds a boosted form to its submit target the first time htmx processes the DOM and never re-reads `action` afterward. raxOpenPresetModal reassigns form.action to the preset's own /update route for Edit, but htmx kept submitting to the modal's original /settings/presets (create) action — which 400s once the (deliberately disabled) Name field's value is missing from the body. Call htmx.process(form) after each action reassignment so htmx rebinds to the route actually set.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01YAS8ojtevRQs2pGngj7D35

Merge request reports

Loading