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