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 * as React from "react";
import { handleClickUtil } from "../../core"; //import { handleClickUtil } from "../../core";
import { InputHiddenProps } from "./InputHiddenProps"; import { InputHiddenProps } from "./InputHiddenProps";
const InputHidden: React.FC<InputHiddenProps> = (props: InputHiddenProps) => { const InputHidden: React.FC<InputHiddenProps> = (props: InputHiddenProps) => {
const { onChange, inputRef, accept, multiple } = props; const { onChange, inputRef, accept, multiple } = props;
function handleClick<T extends HTMLInputElement>( /* function handleClick<T extends HTMLInputElement>(
evt: React.MouseEvent<T, MouseEvent> evt: React.MouseEvent<T, MouseEvent>
): void { ): void {
handleClickUtil(evt); handleClickUtil(evt);
} } */
return ( return (
<React.Fragment> <React.Fragment>
<input <input
...@@ -19,7 +19,7 @@ const InputHidden: React.FC<InputHiddenProps> = (props: InputHiddenProps) => { ...@@ -19,7 +19,7 @@ const InputHidden: React.FC<InputHiddenProps> = (props: InputHiddenProps) => {
type="file" type="file"
accept={accept} accept={accept}
multiple={multiple} multiple={multiple}
onClick={handleClick} //onClick={handleClick}
/> />
</React.Fragment> </React.Fragment>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment