future-boots-43048
12/09/2020, 11:49 PMbillions-rain-29850
12/10/2020, 8:45 AMsalmon-xylophone-28580
12/10/2020, 12:42 PM<div class="notification" up-expand>
Record was saved!
<a href="/records">Close</a>
</div>
.
See https://unpoly.com/up-expandlively-beach-14291
12/10/2020, 2:14 PMup-expand
involve interacting with the server? or is it specialized behaviors local only to the browser?lively-beach-14291
12/10/2020, 2:17 PMmysterious-toddler-20573
12/10/2020, 2:19 PMup-expand
isn't needed in htmx, you would place the hx-get
on the parent element instead:
html
<div class="notification" hx-get='/records'>
Record was saved!
<a>Close</a>
</div>
lively-beach-14291
12/10/2020, 2:54 PMwonderful-summer-65517
12/10/2020, 2:57 PMhx-swap-oob="true"
, but I get htmx:swapError
. What can cause this? Only one (top level) element can have the hx-swap-oob attribute? If not, could you please show me an example, where multiple elements are out of bound swapped?wonderful-summer-65517
12/10/2020, 3:05 PMmysterious-toddler-20573
12/10/2020, 3:39 PMmysterious-toddler-20573
12/10/2020, 3:39 PMmysterious-toddler-20573
12/10/2020, 3:39 PMmysterious-toddler-20573
12/10/2020, 3:40 PMmysterious-toddler-20573
12/10/2020, 3:40 PMwonderful-summer-65517
12/10/2020, 3:42 PMtr
, the other one is a span
There must be a bug, because if I return only one, it works. But if I return both, then the result of makeFragment is nonsensemysterious-toddler-20573
12/10/2020, 3:43 PMwonderful-summer-65517
12/10/2020, 3:43 PMmysterious-toddler-20573
12/10/2020, 3:43 PMmysterious-toddler-20573
12/10/2020, 3:43 PMmysterious-toddler-20573
12/10/2020, 3:44 PMmysterious-toddler-20573
12/10/2020, 3:44 PMwonderful-summer-65517
12/10/2020, 3:44 PMwonderful-summer-65517
12/10/2020, 3:45 PMmysterious-toddler-20573
12/10/2020, 3:46 PMwonderful-summer-65517
12/10/2020, 3:47 PMlively-beach-14291
12/10/2020, 3:53 PMlively-beach-14291
12/10/2020, 3:54 PMmysterious-toddler-20573
12/10/2020, 3:54 PM