fix htmx deletes

This commit is contained in:
Evan Jarrett
2026-04-04 10:59:06 -05:00
parent 23bebee838
commit 2a29ec0fdc

View File

@@ -3,6 +3,11 @@ import htmx from 'htmx.org';
import 'htmx-ext-json-enc';
window.htmx = htmx;
// htmx 2.x puts DELETE params in the URL by default, which breaks json-enc
// (encodeParameters is never called, leaving an empty request body). Keep
// only GET using URL params so DELETE bodies get JSON-encoded properly.
htmx.config.methodsThatUseUrlParams = ['get'];
// Actor Typeahead (web component, auto-registers on import)
import 'actor-typeahead';