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
-
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-swap
has a static set of values, can't we include them in the name ofhx-target
directive, 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