ソースを参照

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>,
 }