Sarguel
Delegated custom events
maybe relevant code from dom-expression:
and
refs:
- https://github.com/ryansolid/dom-expressions/blob/ae71a417aa13b33517082628aff09513629df8b2/packages/dom-expressions/src/client.js#L320-L338
- https://github.com/ryansolid/dom-expressions/blob/ae71a417aa13b33517082628aff09513629df8b2/packages/dom-expressions/src/client.js#L127-L137
7 replies
Delegated custom events
Hello,
you can see event delegation order illustrated with this example: https://playground.solidjs.com/anonymous/f57f8222-23e3-4472-8573-205f6e5c0a29
To answer your question the custom event foo in the example also work with the solid delegation form ( without : ) but if you go and see in the output tab you will see that solid compile it to a dom listener event instead of the solid delegated event primitive
I suspect that if the event doesn't get recognized it get transformed to a delegate event. I don't know if this is a documented behaviour or even if it is by design. We would need someone that know better. In the meantime I would advise you to use the on: form
7 replies
Waiting for big component
here an example to illustrate: https://playground.solidjs.com/anonymous/5066b5ac-e30b-48a3-a811-3e4c92b8f30e
5 replies
class string interpolation with tailwind
and relevant doc in tailwind
https://tailwindcss.com/docs/content-configuration#dynamic-class-names
I couldn't find anything on my first search sorry
12 replies
class string interpolation with tailwind
ok found someone mentioning that aswell, https://stackoverflow.com/a/68020542
12 replies
class string interpolation with tailwind
I understand that part the thing that I can't wrap my head around is that it "understand" that bg1 = "bg-blue-500" so it import it but it doesn't for "bg-"+ "green" +"-500". But if you inspect the dom you see the class. I don't understand where the cutoff is. Couldn't find documentation online on this subject.
12 replies