https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • a

    aloof-crayon-56651

    09/21/2022, 4:01 AM
    Firefox looks the same for me.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:03 AM
    https://codepen.io/deniz-a/pen/KKRqjeZ
  • a

    aloof-crayon-56651

    09/21/2022, 4:07 AM
    Initially I had the input outside the label. I put it inside and it still doesn't get checked unless I have the hyperscript.
  • a

    aloof-crayon-56651

    09/21/2022, 4:07 AM
    I'll keep trying some stuff.
  • a

    aloof-crayon-56651

    09/21/2022, 4:07 AM
    Thanks for the codepen.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:08 AM
    is there some javascript on the img swallowing the click maybe?
  • a

    aloof-crayon-56651

    09/21/2022, 4:09 AM
    The full thing looks like this:
  • a

    aloof-crayon-56651

    09/21/2022, 4:10 AM
    Only have hyperscript on it.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:10 AM
    updated the codepen with an image
  • a

    aloof-crayon-56651

    09/21/2022, 4:10 AM
    Maybe it's because I have multiple labels set to
    for="filter"
    ?
  • g

    gorgeous-airport-54386

    09/21/2022, 4:10 AM
    it still works
  • g

    gorgeous-airport-54386

    09/21/2022, 4:11 AM
    ohh
  • g

    gorgeous-airport-54386

    09/21/2022, 4:11 AM
    yeah you should never have multiple elements with the same id
  • g

    gorgeous-airport-54386

    09/21/2022, 4:12 AM
    maybe use
    filter-{{ tag.slug }}
  • a

    aloof-crayon-56651

    09/21/2022, 4:14 AM
    I want to send a list (object?) like this: {"filter": ["f1", "f2"]}
  • a

    aloof-crayon-56651

    09/21/2022, 4:14 AM
    My backend will get the list and filter results with the list.
  • a

    aloof-crayon-56651

    09/21/2022, 4:15 AM
    I based the idea on the draggable example: https://htmx.org/examples/sortable/
  • a

    aloof-crayon-56651

    09/21/2022, 4:15 AM
    sortable, I mean.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:15 AM
    the
    name
    attribute, not
    id
    , determines the form payload, and
    name
    can be repeated.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:15 AM
    that's why you have to specify both even though they are often the same
  • a

    aloof-crayon-56651

    09/21/2022, 4:16 AM
    Ah, didn't know that. Let's try.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:16 AM
    and that's why your labels didn't work, none of the inputs had id="filter".
  • a

    aloof-crayon-56651

    09/21/2022, 4:19 AM
    Thanks, that works perfectly.
  • a

    aloof-crayon-56651

    09/21/2022, 4:19 AM
    I was also able to move the
    hx-post
    to the input like I wanted.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:22 AM
    no problem :>
  • g

    gorgeous-airport-54386

    09/21/2022, 4:23 AM
    html: it works™
  • a

    aloof-crayon-56651

    09/21/2022, 4:26 AM
    The problem lay not with HTML but between my chair and my keyboard.
  • g

    gorgeous-airport-54386

    09/21/2022, 4:30 AM
    the fact that the software world disparages and thus neglects markup languages is between your chair and your keyboard? :]
  • g

    gorgeous-airport-54386

    09/21/2022, 4:31 AM
    > you say html is not a programming language because you think it degrades programming > i say html is not a programming language because i think it degrades html > we are not the same
  • a

    aloof-crayon-56651

    09/21/2022, 4:42 AM
    I love me some markup.
1...831832833...1146Latest