-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
hx-disabled-elt
does not work with multiple parameterized selectors
#2660
Comments
Hey, you're totally right, multiple extended selectors aren't supported yet. A current workaround for this is to rely on multiple standard CSS selectors, using for example a parent ID and a child selector, or a sibling selector |
I can use multiple standard CSS selectors in my use case, but just wanted to note the docs show multiple extended selectors being supported:
|
Closing this, as multiple extended selectors support was added in #2902, released alongside htmx 2.0.4 |
Sidenote: Thanks for this library and for Hypermedia Systems! I'm reading the book and experimenting with a port of one of my apps to htmx.
From my experimentation with htmx 2.0.0, it seems like the
hx-disabled-elt
attribute works fine with multiple selectors when they're simple CSS selectors likehx-disabled-elt="#b1, #b2"
, but when I specify multiple selectors usingnext
orfind
, then only the first element in the list is processed.Here's an example using
next
, but I've also seen this withfind
:The text was updated successfully, but these errors were encountered: