You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HX-Reselect does not support unset like hx-select does.
I guess this is a pretty rare case, but I wanted to basically do the following:
<buttonhx-select="#some_div" hx-target="#some_div">
Click me
</button>
Then on the server side I want to switch to a body swap, and since hx-select is set I need to unset it.
HX-Retarget = "body"
HX-Reselect = "unset"
Such a body swap might be the only case where unset really matters, since otherwise one is probably able to just work with css selectors. In this case I don't think there is a way. Yes, I've tried :scope, :host, *, > *, and all other suggestions for the selector I could find. maybe I'm missing something...
But in any case: I think it would be nice if htmx would just support the HX-Reselect override with unset like one would expect.
The text was updated successfully, but these errors were encountered:
Pretty much the title.
HX-Reselect
does not supportunset
likehx-select
does.I guess this is a pretty rare case, but I wanted to basically do the following:
Then on the server side I want to switch to a body swap, and since
hx-select
is set I need tounset
it.Such a body swap might be the only case where unset really matters, since otherwise one is probably able to just work with css selectors. In this case I don't think there is a way. Yes, I've tried
:scope
,:host
,*
,> *
, and all other suggestions for the selector I could find. maybe I'm missing something...But in any case: I think it would be nice if htmx would just support the
HX-Reselect
override withunset
like one would expect.The text was updated successfully, but these errors were encountered: