Skip to content

Commit 754b6a7

Browse files
fix(FileUpload): hid input of type file from AT (v5) (#11437)
* fix(FileUpload): hid input of type file from AT (v5) * Updated snapshots
1 parent 8887669 commit 754b6a7

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

packages/react-core/src/components/FileUpload/FileUpload.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export const FileUpload: React.FunctionComponent<FileUploadProps> = ({
173173
<input
174174
/* hidden, necessary for react-dropzone */
175175
{...inputProps}
176+
hidden
176177
/>
177178
{children}
178179
</FileUploadField>

packages/react-core/src/components/FileUpload/__tests__/__snapshots__/FileUpload.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ exports[`simple fileupload 1`] = `
8181
</span>
8282
</div>
8383
<input
84+
hidden=""
8485
style="display: none;"
8586
tabindex="-1"
8687
type="file"

packages/react-core/src/components/MultipleFileUpload/MultipleFileUpload.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const MultipleFileUpload: React.FunctionComponent<MultipleFileUploadProps
6666
<input
6767
/* hidden, necessary for react-dropzone */
6868
{...getInputProps()}
69+
hidden
6970
/>
7071
{children}
7172
</div>

packages/react-core/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUpload.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ exports[`MultipleFileUpload renders custom class names 1`] = `
88
tabindex="0"
99
>
1010
<input
11+
hidden=""
1112
multiple=""
1213
style="display: none;"
1314
tabindex="-1"
@@ -26,6 +27,7 @@ exports[`MultipleFileUpload renders with expected class names when horizontal 1`
2627
tabindex="0"
2728
>
2829
<input
30+
hidden=""
2931
multiple=""
3032
style="display: none;"
3133
tabindex="-1"
@@ -44,6 +46,7 @@ exports[`MultipleFileUpload renders with expected class names when not horizonta
4446
tabindex="0"
4547
>
4648
<input
49+
hidden=""
4750
multiple=""
4851
style="display: none;"
4952
tabindex="-1"

0 commit comments

Comments
 (0)