stop propagating input of type file

pull/1101/head
yann300 4 years ago committed by GitHub
parent 7030709545
commit c0767cd21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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