feat: make file uplaod support drag/drop (#1129)

This commit is contained in:
Yoshino-s 2023-02-20 22:17:01 +08:00 committed by GitHub
parent 29b5c393d1
commit bbc5ac9f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"