소스 검색

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