diff options
author | 2020-02-04 10:33:13 -0600 | |
---|---|---|
committer | 2020-02-04 10:33:13 -0600 | |
commit | 7b892eb3e11596925a2993bcc4175ac09ff3768a (patch) | |
tree | 781402db9c2d6ebef5e47b4f469f47eea0396b4b /web/src/widget/radio.rs | |
parent | 12292126dcf9a6e2ac3befeb056638894afce788 (diff) | |
parent | 6d46833eb2a068bd3655859ea828dad04293e5ba (diff) | |
download | iced-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/radio.rs')
-rw-r--r-- | web/src/widget/radio.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/src/widget/radio.rs b/web/src/widget/radio.rs index 4e7d02b8..6dd0ad45 100644 --- a/web/src/widget/radio.rs +++ b/web/src/widget/radio.rs @@ -93,10 +93,8 @@ where .attr("type", "radio") .attr("style", "margin-right: 10px") .bool_attr("checked", self.is_selected) - .on("click", move |root, vdom, _event| { - event_bus.publish(on_click.clone(), root); - - vdom.schedule_render(); + .on("click", move |_root, _vdom, _event| { + event_bus.publish(on_click.clone()); }) .finish(), text(radio_label.into_bump_str()), |