Skip to content

Honor indicator CSS config after import - #4131

Open
jay23606 wants to merge 1 commit into
bigskysoftware:four-devfrom
jay23606:fix-late-indicator-css-config
Open

jay23606 wants to merge 1 commit into
bigskysoftware:four-devfrom
jay23606:fix-late-indicator-css-config

Conversation

@jay23606

@jay23606 jay23606 commented Oct 9, 2026

Copy link
Copy Markdown

The indicator stylesheet is currently injected in the htmx constructor, so bundled applications cannot set htmx.config.includeIndicatorCSS = false after importing the module. Defer stylesheet setup until indicators are first shown, and re-check the setting then. This lets applications disable the default CSS after import and also lets later config changes take effect before a request.

Fixes #4122.

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