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

Add hx-disabled-elt attribute #35

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Add hx-disabled-elt attribute #35

merged 1 commit into from
Nov 29, 2023

Conversation

MikeMoolenaar
Copy link
Contributor

@MikeMoolenaar MikeMoolenaar commented Nov 20, 2023

Htmx 1.9.6 introduced this attribute, used to be an extension (source).
https://htmx.org/attributes/hx-disabled-elt/

Not sure if I should state somewhere that it's only available from 1.9.6? Might be some folks running an older version and may cause confusion. Let me know!

Comment on lines +228 to +231
(
"hx-disabled-elt",
include_str!("./attributes/hx-disabled-elt.md"),
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be nicer if this has the same formatting as the other elements of the array

Copy link
Contributor Author

@MikeMoolenaar MikeMoolenaar Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, but others in the same array, like "hx-select-oob", have the same formatting, so I though might be out of scope for this PR :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be due to a linear length constraint in an autoformatter.

@ThePrimeagen
Copy link
Owner

ok, let me review!

@ThePrimeagen ThePrimeagen merged commit 040b129 into ThePrimeagen:master Nov 29, 2023
3 checks passed
@MikeMoolenaar MikeMoolenaar deleted the add-attribute-hx-disabled-elt branch December 3, 2023 16:36
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.

3 participants