From f08d1676d99c802f2f136fe89ac1717363e0924d Mon Sep 17 00:00:00 2001 From: Jose Manuel Serrano Amaut <a20122128@pucp.pe> Date: Fri, 10 Mar 2023 13:00:38 -0500 Subject: [PATCH] [FIX]: Delete prevent default that caused not to open file dialog --- src/files-ui/components/input-hidden/InputHidden.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/files-ui/components/input-hidden/InputHidden.tsx b/src/files-ui/components/input-hidden/InputHidden.tsx index 5545cfe..9725bcc 100644 --- a/src/files-ui/components/input-hidden/InputHidden.tsx +++ b/src/files-ui/components/input-hidden/InputHidden.tsx @@ -1,14 +1,14 @@ import * as React from "react"; -import { handleClickUtil } from "../../core"; +//import { handleClickUtil } from "../../core"; import { InputHiddenProps } from "./InputHiddenProps"; const InputHidden: React.FC<InputHiddenProps> = (props: InputHiddenProps) => { const { onChange, inputRef, accept, multiple } = props; - function handleClick<T extends HTMLInputElement>( + /* function handleClick<T extends HTMLInputElement>( evt: React.MouseEvent<T, MouseEvent> ): void { handleClickUtil(evt); - } + } */ return ( <React.Fragment> <input @@ -19,7 +19,7 @@ const InputHidden: React.FC<InputHiddenProps> = (props: InputHiddenProps) => { type="file" accept={accept} multiple={multiple} - onClick={handleClick} + //onClick={handleClick} /> </React.Fragment> ); -- GitLab