We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<label _="on click toggle .bg-gray-300 on me" class="p-4 border rounded cursor-pointer hover:bg-gray-200"> <input type="checkbox" name="{{ category }}" value="{{ option }}" class="hidden"> <div>{{ option }}</div> </label>
This doesn't work. If I replace the label with a div, it works as intended.
Any ideas why? :)
The text was updated successfully, but these errors were encountered:
@pmz I just tried using a very simple setup, also using tailwindcss like you seem to be using and it works as intended:
<html> <head> <script src="https://cdn.tailwindcss.com"></script> <script src="https://unpkg.com/hyperscript.org@0.9.12"></script> </head> <body> <label _="on click toggle .bg-gray-300 on me" class="p-4 border rounded cursor-pointer hover:bg-gray-200"> My Label </label> </body> </html>
Sorry, something went wrong.
No branches or pull requests
<label _="on click toggle .bg-gray-300 on me" class="p-4 border rounded cursor-pointer hover:bg-gray-200"> <input type="checkbox" name="{{ category }}" value="{{ option }}" class="hidden"> <div>{{ option }}</div> </label>
This doesn't work. If I replace the label with a div, it works as intended.
Any ideas why? :)
The text was updated successfully, but these errors were encountered: