Explorar o código

example: add `window_zoom` example

YuKun Liu %!s(int64=3) %!d(string=hai) anos
pai
achega
31a2ded2b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/window_zoom.rs

+ 1 - 1
examples/window_zoom.rs

@@ -14,7 +14,7 @@ fn app(cx: Scope) -> Element {
     cx.render(rsx! {
         input {
             r#type: "number",
-            value: "{level_display}",
+            value: "{level}",
             oninput: |e| {
                 level.set(e.value.parse::<f64>().unwrap_or_default())
             }