Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
indiscale-files-ui-react
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
indiscale-files-ui-react
Commits
73c044f4
Commit
73c044f4
authored
2 years ago
by
Jose Manuel Serrano Amaut
Browse files
Options
Downloads
Patches
Plain Diff
[FIX]: Solve isse that allows to select or drop files when upload has started.
parent
8992996a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files-ui/components/dropzone/components/dropzone/Dropzone.tsx
+4
-4
4 additions, 4 deletions
...s-ui/components/dropzone/components/dropzone/Dropzone.tsx
with
4 additions
and
4 deletions
src/files-ui/components/dropzone/components/dropzone/Dropzone.tsx
+
4
−
4
View file @
73c044f4
...
@@ -130,6 +130,7 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
...
@@ -130,6 +130,7 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
style
:
containerStyle
,
style
:
containerStyle
,
className
:
containerClassName
,
className
:
containerClassName
,
}
=
actionButtons
as
DropzoneActions
;
}
=
actionButtons
as
DropzoneActions
;
const
styleBorderRadius
:
string
|
number
|
undefined
=
style
?.
borderRadius
;
const
styleBorderRadius
:
string
|
number
|
undefined
=
style
?.
borderRadius
;
const
{
const
{
...
@@ -195,7 +196,6 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
...
@@ -195,7 +196,6 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
localization
,
localization
,
validateFilesFlag
validateFilesFlag
);
);
/**
/**
* Uploads each file in the array of ExtFiles
* Uploads each file in the array of ExtFiles
* First, sets all the files in preparing status and awaits `preparingTime` miliseconds.
* First, sets all the files in preparing status and awaits `preparingTime` miliseconds.
...
@@ -570,7 +570,7 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
...
@@ -570,7 +570,7 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
// HANDLERS for CLICK, DRAG NAD DROP
// HANDLERS for CLICK, DRAG NAD DROP
function
handleClick
():
void
{
function
handleClick
():
void
{
//handleClickUtil(evt);
//handleClickUtil(evt);
if
(
!
clickable
)
return
;
if
(
!
clickable
||
disabled
||
isUploading
)
return
;
makeRipple
();
makeRipple
();
handleClickInput
(
inputRef
.
current
);
handleClickInput
(
inputRef
.
current
);
}
}
...
@@ -626,12 +626,12 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
...
@@ -626,12 +626,12 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => {
if
(
disabled
)
return
;
if
(
disabled
)
return
;
if
(
isUploading
)
return
;
if
(
!
disableRipple
)
makeRipple
();
if
(
!
disableRipple
)
makeRipple
();
setIsDragging
(
false
);
setIsDragging
(
false
);
if
(
isUploading
)
return
;
let
fileList
:
FileList
=
evt
.
dataTransfer
.
files
;
let
fileList
:
FileList
=
evt
.
dataTransfer
.
files
;
let
extFileListOutput
:
ExtFile
[]
=
fileListToExtFileArray
(
fileList
);
let
extFileListOutput
:
ExtFile
[]
=
fileListToExtFileArray
(
fileList
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment