Skip to content
New issue

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

how to uncheck a radio #546

Open
glfeng318 opened this issue Jun 12, 2024 · 1 comment
Open

how to uncheck a radio #546

glfeng318 opened this issue Jun 12, 2024 · 1 comment

Comments

@glfeng318
Copy link

<input type="radio" name="expand" _="on click halt the event remove [@checked] on me" class="ml-4">
not work as expected.
And how to toggle @checked attribute of a radio?

@Nicero
Copy link

Nicero commented Jul 2, 2024

Simply remove [ and ]:

_="on click remove @checked"

What behaviour should have a toggle radio button?

_="on click if me match <:checked/> ..."
_="on click if me match <:not(:checked)/> ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants