Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we programmatically change htmx config? #2907

Closed
jazoom opened this issue Sep 15, 2024 · 3 comments
Closed

How do we programmatically change htmx config? #2907

jazoom opened this issue Sep 15, 2024 · 3 comments

Comments

@jazoom
Copy link

jazoom commented Sep 15, 2024

This page says to do this

htmx.config.allowEval = false;

But TypeScript is not allowing me to do that.

Cannot assign to 'allowEval' because it is a read-only property.ts(2540)

I know tags can be used but I want to keep the htmx setup in the same file and not have bits all over the place.

@Telroshan
Copy link
Collaborator

Hey, I'm closing this as duplicate of #2850.
PR #2853 fixes it and will be in the next htmx release

@jazoom
Copy link
Author

jazoom commented Sep 15, 2024

Sorry I did search. I guess I wasn't using the same terms as in that issue. Thank you.

@Telroshan
Copy link
Collaborator

No worries!

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

No branches or pull requests

2 participants