Replies: 1 comment
-
|
Hey, those two attributes define different properties related to the swap behavior ; Some thoughts on this:
To be honest, I'm not sure what benefits the suggested approach actually brings, while I'm sure of the challenges and downsides that would come along with it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The directives are conceptually very close. They both answer the same question "where to put the response". So why keep them separate?
Considering that
hx-swaphas a static set of values, can't we include them in the name ofhx-targetdirective, like:hx-target-hx-swap="innerHTML"for backward compatibilityhx-target-outer-html-hx-swap="outerHTML"hx-target-afterbegin- ...Beta Was this translation helpful? Give feedback.
All reactions