Skip to content

Commit

Permalink
[filigran-ui] - (fileInput) Button type
Browse files Browse the repository at this point in the history
  • Loading branch information
hervyt committed Oct 22, 2024
1 parent 3ca4281 commit 2ca933f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/filigran-ui/src/components/clients/file-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ function GenericFileInput(
ref={ref}
{...props}
/>
<Button onClick={() => ref.current && ref.current.click()}>
<Button
type="button"
onClick={() => ref.current && ref.current.click()}>
<>{textForComp?.selectFile}</>
</Button>{' '}
{fileSelected?.name ?? textForComp.noFile}
Expand Down

0 comments on commit 2ca933f

Please sign in to comment.