mysterious-toddler-20573
10/17/2020, 7:33 PMdev
and I prepped a 0.3
release. @User any more details on what you were seeing?gorgeous-ghost-95789
10/17/2020, 7:34 PMgorgeous-ghost-95789
10/17/2020, 7:34 PMgorgeous-ghost-95789
10/17/2020, 7:36 PMmysterious-toddler-20573
10/17/2020, 8:29 PMhtml
<div hx-trigger="click[button==0]" ...>...</div>
big-airline-13935
10/17/2020, 8:32 PMmysterious-toddler-20573
10/17/2020, 8:35 PMmysterious-toddler-20573
10/17/2020, 8:35 PMevent
object, then against the global scopemost-jelly-15242
10/17/2020, 9:42 PMmysterious-toddler-20573
10/17/2020, 9:58 PMmysterious-toddler-20573
10/18/2020, 12:00 AMmysterious-toddler-20573
10/18/2020, 12:01 AMmysterious-toddler-20573
10/18/2020, 12:01 AMmysterious-toddler-20573
10/18/2020, 12:06 AMmysterious-toddler-20573
10/18/2020, 12:49 AMbroad-breakfast-38211
10/19/2020, 9:48 AMbroad-breakfast-38211
10/19/2020, 9:49 AMbroad-breakfast-38211
10/19/2020, 9:49 AMbroad-breakfast-38211
10/19/2020, 9:51 AMmysterious-toddler-20573
10/19/2020, 1:25 PMmost-jelly-15242
10/19/2020, 4:41 PMlively-beach-14291
10/19/2020, 5:16 PMmost-jelly-15242
10/19/2020, 5:22 PMbig-airline-13935
10/19/2020, 6:16 PMclean-kitchen-15473
10/19/2020, 6:28 PMjavascript
ic-on-error="displayError()"
ic-on-success="hideError()"
nevermind, i didn't understand what symbols meant but I get it nowmysterious-toddler-20573
10/19/2020, 6:44 PMmost-jelly-15242
10/20/2020, 9:57 PMhandleSwap
in an extension, htmx defaults to innerHTML
swap instead of using config.defaultSwapStyle
https://github.com/bigskysoftware/htmx/blob/938130040f13eeee55965a54bb8c9f722315d881/src/htmx.js#L609 Would you consider changing this to use config.defaultSwapStyle
, or perhaps allow having a secondary swap to use when the extension returns false? For example hx-swap="morphdom, outerHTML"
.quaint-accountant-21340
10/20/2020, 10:46 PMquaint-accountant-21340
10/20/2020, 10:49 PMTypeError: Cannot read property 'querySelectorAll' of undefined
at J (htmx.org@0.2.0:1)
at $ (htmx.org@0.2.0:1)
at eval (eval at Re (htmx.org@0.2.0:1), <anonymous>:2:1)
at Re (htmx.org@0.2.0:1)
at He (htmx.org@0.2.0:1)
at htmx.org@0.2.0:1
at htmx.org@0.2.0:1
at R (htmx.org@0.2.0:1)
at i (htmx.org@0.2.0:1)
I think this is because the js is run before the html is actually in the dom.
If it listen on htmx:afterSettle
in the page the target page is works fine but then the everything isn't nicely stored together which is sad. Is there an idiom here I should be using?mysterious-toddler-20573
10/20/2020, 10:51 PM