mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 09:21:07 +08:00
feat: make file uplaod support drag/drop (#1129)
This commit is contained in:
parent
29b5c393d1
commit
bbc5ac9f0e
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ const CreateResourceDialog: React.FC<Props> = (props: Props) => {
|
||||||
Choose a file...
|
Choose a file...
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
className="absolute inset-0 hidden"
|
className="absolute inset-0 w-full h-full opacity-0"
|
||||||
ref={fileInputRef}
|
ref={fileInputRef}
|
||||||
onChange={handleFileInputChange}
|
onChange={handleFileInputChange}
|
||||||
type="file"
|
type="file"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue