瀏覽代碼

fix: example bugged out

Jonathan Kelley 3 年之前
父節點
當前提交
c8535fb184
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/optional_props.rs

+ 1 - 1
examples/optional_props.rs

@@ -28,7 +28,7 @@ struct ButtonProps {
     #[props(default)]
     c: Option<String>,
 
-    #[props(default)]
+    #[props(default, strip_option)]
     d: Option<String>,
 }