stop propagating input of type file

pull/5370/head
yann300 4 years ago committed by GitHub
parent d886bfe3b5
commit 7b9f3e8949
  1. 1
      libs/remix-ui/file-explorer/src/lib/file-explorer.tsx

@ -994,6 +994,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
label={
<div onClick={(e) => {
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 = []
if (!state.expandPath.includes(props.name)) {

Loading…
Cancel
Save