onClick function not rendered in the DOM ?
Hi, I'm trying to make a togglable filter list.
I use the For element to loop over my list of filters and create a button for each.
The issue I have is that the 'onClick' doesn't run and doesn't appear in the HTML. Here is what I get in the inspector:
I am new to solid, I'm sorry if this is ends up being a really dumb issue on my part. But currently I'm scratching my head very hard about this onClick
3 Replies
your
onClick
listener won't appear in the dom, it's attached in js. a bit strange that it's not firing thoughwhat SSR setup is this? Are you using Start, Astro, or your own setup?
but yes, event listeners won't appear in your initial html
Okay thanks for clarifying that. I've used Qwik before, and everything there was serialized in the Dom. I was a bit lost
I'm using solid start yes
Hi, I'm back. I've updated the dependencies manually and now it works. @lxsmnsyc 🤖 The issue was with vinxi 0.1.1 (I think)