-
-
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-Retarget and this #1962
Comments
i cannot use the |
also glad to submit a pr to fix this |
Indeed, the
I don't know if this was forgotten at the time extended selectors were added in, I don't see any reason to oppose to add support for those extended selectors for this header, relatively to the element that triggered the request Feel free to submit a PR for it! |
i'll try to get something up in a bit |
This is another consequence of the extended CSS selectors being a construct that exists in a lot of places, so it looks like "one thing", but isn't necessarily supported everywhere that CSS selectors are. You probably don't have to do too much more than change the line you identified to use findAttributeTarget (although the Also another reason to unify their documentation: #1601 |
@alexpetros thanks for the direction! this is great. i will still take care of this, just preparing for my talk still :) |
Hx-Retarget and
this
as target causes null error and prevents htmx from operating any more on the sitethe docs claim that this
context
doing a little 422 swap and from the server i was going to target the originating form to show the error
form
server
this will result in the target code executing, notice no special handling for
this
The text was updated successfully, but these errors were encountered: