Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Remove hidden input from tabindex #255

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/inputs/FileUpload/FileUpload.style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled from 'styled-components';
import { IrisInputProps } from '../../../utils';

export const Hidden = styled.input`
export const Hidden = styled.input<IrisInputProps>`
overflow: hidden;
position: absolute;
z-index: -1;
Expand Down
1 change: 1 addition & 0 deletions src/components/inputs/FileUpload/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function FileUploadComponent({
{...props}
>
<Hidden
tabIndex={-1}
ref={ref}
type="file"
accept={accept}
Expand Down