Skip to content

Commit e3576fd

Browse files
committed
docs: add initialValues for numberArray
1 parent 109e6a0 commit e3576fd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/Form/Form.stories.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-lines */
12
/* eslint-disable perfectionist/sort-objects */
23

34
import { useEffect, useState } from 'react';
@@ -404,6 +405,13 @@ export const WithInitialValues: StoryObj<typeof Form> = {
404405
numberSlider: 45,
405406
numberRadio: 3,
406407
numberSelect: 4,
408+
recordArray: [
409+
{
410+
recordArrayStringInput: 'A',
411+
showRecordArrayDynamicField: true,
412+
recordArrayDynamicField: 'B'
413+
}
414+
],
407415
stringSelect: 'a',
408416
setListbox: new Set(['a', 'b']),
409417
setSelect: new Set(['c', 'd']),
@@ -425,7 +433,6 @@ export const WithDynamicInitialValues: StoryObj<typeof Form> = {
425433
decorators: [
426434
(Story) => {
427435
const [initialValues, setInitialValues] = useState<FormTypes.PartialNullableData<ExampleFormData>>({});
428-
429436
useEffect(() => {
430437
setTimeout(() => {
431438
setInitialValues({

0 commit comments

Comments
 (0)