fix: hidden file input being clickable (#1414)

This commit is contained in:
Aman Harwara
2022-08-18 12:30:30 +05:30
committed by GitHub
parent b1f23d6076
commit 779596b9ae
2 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ const AttachedFilesPopover: FunctionComponent<Props> = ({
</div> </div>
<input <input
type="file" type="file"
className="absolute top-0 left-0 opacity-0" className="absolute top-0 left-0 -z-50 h-px w-px opacity-0"
multiple multiple
ref={fileInputRef} ref={fileInputRef}
onChange={async (event) => { onChange={async (event) => {

View File

@@ -196,7 +196,7 @@ const ContentListView: FunctionComponent<Props> = ({
<div id="items-title-bar-container"> <div id="items-title-bar-container">
<input <input
type="file" type="file"
className="absolute top-0 left-0 opacity-0" className="absolute top-0 left-0 -z-50 h-px w-px opacity-0"
multiple multiple
ref={fileInputRef} ref={fileInputRef}
onChange={(event) => { onChange={(event) => {