Come spostare correttamente il mio script nella nuova scheda JS del mio componente?

I had a look at how it works, since it has been a long time.

  • Tag inputs appear on the composer when creating a new topic regardless of the selected category (even if the category has no available tags for others than admins), which is I want to prevent
  • CSS only won’t work, because the composer can be open on any page, and there’s no parent CSS targetting the wanted category that would help hiding the composer’s tag input, which I believe is why I used javascript for.

So, unless I’m missing something I still need a script to achieve my goal.

The original Feature topic about this was here:

I guess not enough traction to have this feature worked on, and pr-welcome was not desired here according to sam.

So, stuck with a custom JS solution (which I need to fix then :smiling_face_with_tear: )

1 Mi Piace