use directive not working
I was learning this https://www.solidjs.com/tutorial/bindings_directives
but when i try use directive locally, it doesnt work. Do i need to enable things?
SolidJS
Solid is a purely reactive library. It was designed from the ground up with a reactive core. It's influenced by reactive principles developed by previous libraries.
12 Replies
i remember something about directives being treeshaken away by typescript. try
nvm it works but weirdly


if i click on the white part then it doesnt work
🤔 i m not following, you are not using a directive here?
no i used it inside my select component
i meant the entire website is the red part you see
so clicking the white part doesnt trigger the directive
i have too little information to help you out with that i'm afraid, if you can make a minimal reproduction in the playground of your bug i can have a look at it

vanilla solid project with vite
clicking the white area doesnt trigger anything, but this doesnst happen on solid playground
did u try this?
yes, same thing with it
but clicking within the red area works
ig this shouldnt be much of issue
my site was new so nothing in it, was testing my dropdown and wanted outside click stuff for it
i get it now, thanks