summaryrefslogtreecommitdiffstats
path: root/web/src/widget/checkbox.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-02-04 10:33:13 -0600
committerLibravatar GitHub <noreply@github.com>2020-02-04 10:33:13 -0600
commit7b892eb3e11596925a2993bcc4175ac09ff3768a (patch)
tree781402db9c2d6ebef5e47b4f469f47eea0396b4b /web/src/widget/checkbox.rs
parent12292126dcf9a6e2ac3befeb056638894afce788 (diff)
parent6d46833eb2a068bd3655859ea828dad04293e5ba (diff)
downloadiced-7b892eb3e11596925a2993bcc4175ac09ff3768a.tar.gz
iced-7b892eb3e11596925a2993bcc4175ac09ff3768a.tar.bz2
iced-7b892eb3e11596925a2993bcc4175ac09ff3768a.zip
Merge pull request #177 from hecrj/feature/web-subscriptions
Event subscriptions and custom executors for `iced_web`
Diffstat (limited to 'web/src/widget/checkbox.rs')
-rw-r--r--web/src/widget/checkbox.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/widget/checkbox.rs b/web/src/widget/checkbox.rs
index 34d13a1b..1e864875 100644
--- a/web/src/widget/checkbox.rs
+++ b/web/src/widget/checkbox.rs
@@ -84,9 +84,9 @@ where
input(bump)
.attr("type", "checkbox")
.bool_attr("checked", self.is_checked)
- .on("click", move |root, vdom, _event| {
+ .on("click", move |_root, vdom, _event| {
let msg = on_toggle(!is_checked);
- event_bus.publish(msg, root);
+ event_bus.publish(msg);
vdom.schedule_render();
})