Skip to content
Snippets Groups Projects
Commit f08d1676 authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[FIX]: Delete prevent default that caused not to open file dialog

parent 460ee45e
No related branches found
No related tags found
No related merge requests found
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>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment