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

checkbox doesn't fire .on_click_stop in example #515

Open
dspo opened this issue Jul 18, 2024 · 4 comments
Open

checkbox doesn't fire .on_click_stop in example #515

dspo opened this issue Jul 18, 2024 · 4 comments

Comments

@dspo
Copy link
Contributor

dspo commented Jul 18, 2024

checkbox doesn't fire .on_click_stop in example

checkbox(move || is_checked.get())
.style(|s| s.margin_left(6))
.on_click_stop(move |_| {
set_is_checked
.update(|checked: &mut bool| *checked = !*checked);
}),

@dzhou121
Copy link
Contributor

It works fine for me with on_click_stop. Would you mind sharing a screen cast of the issue?

@dspo
Copy link
Contributor Author

dspo commented Jul 19, 2024

It works fine for me with on_click_stop. Would you mind sharing a screen cast of the issue?

My machine is a MacOS M2.

When using .on_click_stop I click checkbox and nothing is printed.

20240719175226_rec_

.on_update works OK.

20240719175448_rec_

@dzhou121
Copy link
Contributor

Got it, thanks.

@sgued
Copy link
Contributor

sgued commented Aug 11, 2024

This is the same issue as #533

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

3 participants