Skip to content
Discussion options

You must be logged in to vote

Can you try with hx-trigger="load delay:1ms"? There can be issues with load trigger as it tries to fire its ajax request the moment the element is being inited by htmx and this can sometimes happen before some hx-on events are loaded. delaying it a tick or two should allow things to get setup before the trigger fires the request.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fzumstein
Comment options

Answer selected by fzumstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants