1
0
Эх сурвалжийг харах

docs: add allowEmpty in Form for NestArrayFieldDemo (#2110)

YyumeiZhang 1 жил өмнө
parent
commit
ca390d1081

+ 2 - 1
content/input/form/index-en-US.md

@@ -1584,8 +1584,9 @@ const NestArrayFieldDemo = () => {
             initValues={initValue}
             labelPosition="left"
             style={{ textAlign: "left" }}
+            allowEmpty
         >
-            <ArrayField field="group" allowEmpty>
+            <ArrayField field="group" >
                 {({ add, arrayFields, addWithInitValue }) => (
                     <React.Fragment>
                         <Button

+ 2 - 1
content/input/form/index.md

@@ -1658,8 +1658,9 @@ const NestArrayFieldDemo = () => {
             initValues={initValue}
             labelPosition="left"
             style={{ textAlign: "left" }}
+            allowEmpty
         >
-            <ArrayField field="group" allowEmpty>
+            <ArrayField field="group" >
                 {({ add, arrayFields, addWithInitValue }) => (
                     <React.Fragment>
                         <Button