Unverified Commit c0767cd2 authored by yann300's avatar yann300 Committed by GitHub

stop propagating input of type file

parent 70307095
...@@ -994,6 +994,7 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -994,6 +994,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
label={ label={
<div onClick={(e) => { <div onClick={(e) => {
e.stopPropagation() e.stopPropagation()
if (e && (e.target as any).getAttribute('data-id') === 'fileExplorerUploadFileuploadFile') return // we don't want to let propagate the input of type file
let expandPath = [] let expandPath = []
if (!state.expandPath.includes(props.name)) { if (!state.expandPath.includes(props.name)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment