Skip to content

Commit 60fdcad

Browse files
authored
Remove undefined "name" parameter for material-ui
Fixes rjsf-team#1921
1 parent 238b94f commit 60fdcad

File tree

6 files changed

+0
-87
lines changed

6 files changed

+0
-87
lines changed

packages/material-ui/src/SelectWidget/SelectWidget.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const SelectWidget = ({
7575
<TextField
7676
id={id}
7777
label={label || schema.title}
78-
name={name}
7978
select
8079
value={typeof value === "undefined" ? emptyValue : value}
8180
required={required}

packages/material-ui/src/TextWidget/TextWidget.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const TextWidget = ({
5252
autoFocus={autofocus}
5353
required={required}
5454
disabled={disabled || readonly}
55-
name={name}
5655
type={type || (schema.type as string)}
5756
value={value || value === 0 ? value : ""}
5857
error={rawErrors.length > 0}

packages/material-ui/src/UpDownWidget/UpDownWidget.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const UpDownWidget = ({
4040
required={required}
4141
type="number"
4242
disabled={disabled || readonly}
43-
name={name}
4443
value={value ? value : ''}
4544
onChange={_onChange}
4645
onBlur={_onBlur}

packages/material-ui/test/__snapshots__/Array.test.tsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ exports[`array fields checkboxes 1`] = `
137137
</div>
138138
<input
139139
autoFocus={false}
140-
name="nodejs"
141140
onAnimationStart={[Function]}
142141
type="hidden"
143142
value=""
@@ -290,7 +289,6 @@ exports[`array fields fixed array 1`] = `
290289
className="MuiInputBase-input MuiInput-input"
291290
disabled={false}
292291
id="root_0"
293-
name="nodejs"
294292
onAnimationStart={[Function]}
295293
onBlur={[Function]}
296294
onChange={[Function]}
@@ -394,7 +392,6 @@ exports[`array fields fixed array 1`] = `
394392
className="MuiInputBase-input MuiInput-input"
395393
disabled={false}
396394
id="root_1"
397-
name="nodejs"
398395
onAnimationStart={[Function]}
399396
onBlur={[Function]}
400397
onChange={[Function]}

packages/material-ui/test/__snapshots__/Form.test.tsx.snap

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ exports[`single fields format color 1`] = `
523523
className="MuiInputBase-input MuiInput-input"
524524
disabled={false}
525525
id="root"
526-
name="nodejs"
527526
onAnimationStart={[Function]}
528527
onBlur={[Function]}
529528
onChange={[Function]}
@@ -639,7 +638,6 @@ exports[`single fields format date 1`] = `
639638
className="MuiInputBase-input MuiInput-input"
640639
disabled={false}
641640
id="root"
642-
name="nodejs"
643641
onAnimationStart={[Function]}
644642
onBlur={[Function]}
645643
onChange={[Function]}
@@ -752,7 +750,6 @@ exports[`single fields format datetime 1`] = `
752750
className="MuiInputBase-input MuiInput-input"
753751
disabled={false}
754752
id="root"
755-
name="nodejs"
756753
onAnimationStart={[Function]}
757754
onBlur={[Function]}
758755
onChange={[Function]}
@@ -867,7 +864,6 @@ exports[`single fields hidden label 1`] = `
867864
className="MuiInputBase-input MuiInput-input"
868865
disabled={false}
869866
id="root"
870-
name="nodejs"
871867
onAnimationStart={[Function]}
872868
onBlur={[Function]}
873869
onChange={[Function]}
@@ -1024,7 +1020,6 @@ exports[`single fields number field 0 1`] = `
10241020
className="MuiInputBase-input MuiInput-input"
10251021
disabled={false}
10261022
id="root"
1027-
name="nodejs"
10281023
onAnimationStart={[Function]}
10291024
onBlur={[Function]}
10301025
onChange={[Function]}
@@ -1136,7 +1131,6 @@ exports[`single fields number field 1`] = `
11361131
className="MuiInputBase-input MuiInput-input"
11371132
disabled={false}
11381133
id="root"
1139-
name="nodejs"
11401134
onAnimationStart={[Function]}
11411135
onBlur={[Function]}
11421136
onChange={[Function]}
@@ -1462,7 +1456,6 @@ exports[`single fields select field 1`] = `
14621456
</div>
14631457
<input
14641458
autoFocus={false}
1465-
name="nodejs"
14661459
onAnimationStart={[Function]}
14671460
type="hidden"
14681461
value=""
@@ -1511,74 +1504,6 @@ exports[`single fields select field 1`] = `
15111504
</form>
15121505
`;
15131506

1514-
exports[`single fields slider field 1`] = `
1515-
<form
1516-
className="rjsf"
1517-
noValidate={false}
1518-
onSubmit={[Function]}
1519-
>
1520-
<div
1521-
className="MuiFormControl-root MuiFormControl-fullWidth"
1522-
>
1523-
<label
1524-
className="MuiFormLabel-root"
1525-
id="root"
1526-
/>
1527-
<span
1528-
className="MuiSlider-root MuiSlider-colorPrimary"
1529-
id="root"
1530-
onBlur={[Function]}
1531-
onFocus={[Function]}
1532-
onMouseDown={[Function]}
1533-
>
1534-
<span
1535-
className="MuiSlider-rail"
1536-
/>
1537-
<span
1538-
className="MuiSlider-track"
1539-
style={
1540-
Object {
1541-
"left": "0%",
1542-
"width": "NaN%",
1543-
}
1544-
}
1545-
/>
1546-
<input
1547-
type="hidden"
1548-
value=""
1549-
/>
1550-
<span
1551-
aria-orientation="horizontal"
1552-
aria-valuemax={100}
1553-
aria-valuemin={42}
1554-
className="MuiSlider-thumb MuiSlider-thumbColorPrimary"
1555-
data-index={0}
1556-
onBlur={[Function]}
1557-
onFocus={[Function]}
1558-
onKeyDown={[Function]}
1559-
onMouseLeave={[Function]}
1560-
onMouseOver={[Function]}
1561-
role="slider"
1562-
style={
1563-
Object {
1564-
"left": "NaN%",
1565-
}
1566-
}
1567-
tabIndex={0}
1568-
/>
1569-
</span>
1570-
</div>
1571-
<div>
1572-
<button
1573-
className="btn btn-info"
1574-
type="submit"
1575-
>
1576-
Submit
1577-
</button>
1578-
</div>
1579-
</form>
1580-
`;
1581-
15821507
exports[`single fields string field format data-url 1`] = `
15831508
<form
15841509
className="rjsf"
@@ -1704,7 +1629,6 @@ exports[`single fields string field format email 1`] = `
17041629
className="MuiInputBase-input MuiInput-input"
17051630
disabled={false}
17061631
id="root"
1707-
name="nodejs"
17081632
onAnimationStart={[Function]}
17091633
onBlur={[Function]}
17101634
onChange={[Function]}
@@ -1820,7 +1744,6 @@ exports[`single fields string field format uri 1`] = `
18201744
className="MuiInputBase-input MuiInput-input"
18211745
disabled={false}
18221746
id="root"
1823-
name="nodejs"
18241747
onAnimationStart={[Function]}
18251748
onBlur={[Function]}
18261749
onChange={[Function]}
@@ -1932,7 +1855,6 @@ exports[`single fields string field regular 1`] = `
19321855
className="MuiInputBase-input MuiInput-input"
19331856
disabled={false}
19341857
id="root"
1935-
name="nodejs"
19361858
onAnimationStart={[Function]}
19371859
onBlur={[Function]}
19381860
onChange={[Function]}
@@ -2044,7 +1966,6 @@ exports[`single fields string field with placeholder 1`] = `
20441966
className="MuiInputBase-input MuiInput-input"
20451967
disabled={false}
20461968
id="root"
2047-
name="nodejs"
20481969
onAnimationStart={[Function]}
20491970
onBlur={[Function]}
20501971
onChange={[Function]}

packages/material-ui/test/__snapshots__/Object.test.tsx.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ exports[`object fields object 1`] = `
9999
className="MuiInputBase-input MuiInput-input"
100100
disabled={false}
101101
id="root_a"
102-
name="nodejs"
103102
onAnimationStart={[Function]}
104103
onBlur={[Function]}
105104
onChange={[Function]}
@@ -200,7 +199,6 @@ exports[`object fields object 1`] = `
200199
className="MuiInputBase-input MuiInput-input"
201200
disabled={false}
202201
id="root_b"
203-
name="nodejs"
204202
onAnimationStart={[Function]}
205203
onBlur={[Function]}
206204
onChange={[Function]}

0 commit comments

Comments
 (0)