mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-04-20 00:20:31 +00:00
fix htmx deletes
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user