Skip to content

Honor dynamically added hx-ignore attributes - #4132

Open
jay23606 wants to merge 1 commit into
bigskysoftware:four-devfrom
jay23606:fix-dynamic-hx-ignore
Open

jay23606 wants to merge 1 commit into
bigskysoftware:four-devfrom
jay23606:fix-dynamic-hx-ignore

Conversation

@jay23606

@jay23606 jay23606 commented Oct 9, 2026

Copy link
Copy Markdown

An element initialized before one of its ancestors receives hx-ignore keeps its existing event listener and can still issue requests. Check the current ignore state when the listener fires so dynamically added hx-ignore takes effect immediately. Removing the attribute also takes effect without reprocessing the element.

Fixes #4061.

Validation: npm run test:chrome (1,781 passed, 0 failed, 4 skipped).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant