You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classes bg-neutral-300 and text-indigo-600 removed from currently active element;
Class text-gray-700 added to currently active element;
Classes bg-neutral-300 and text-indigo-600 added to clicked on element;
Classes hover:text-indigo-600 and hover:bg-neutral-300 removed from clicked on element.
I don't want hyperscript to traverse entire DOM (looking for .tab class or something) and work only on "a" children of "ul";
I want it to work even if click was on svg inside a element.
I tried using take and toggle commands and expressions like event.target.closest('<a/>') and couldn't achieve the result. I also struggled to understand how to add/remove several classes at once.
Activity
FDiskas commentedon Aug 25, 2023
Maintainers - please enable discussions in the repository