This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
File drop UI fixes and improvements #5505
File drop UI fixes and improvements #5505
Changes from 9 commits
89bc443
41e2ffd
da97d18
dcb30b7
e70dee0
044e02b
bebbb3b
365d252
5d7e45e
c1a105f
ad85764
aa4ec9f
8551855
a3001f7
26b70b6
6a7340e
1c48804
43e1144
7277c28
49ea9a4
1a7f909
f0c2684
172cc01
3e0558f
49ea83e
e90ae2e
819a0b0
0d6a9fc
11c5aa0
9a5ba07
3bed374
3a643e5
ebedd3c
ff00683
0a4c0b6
4476843
831cc7e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably not necessary here? But there is
draggingFile: false
, is that intentional?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm slightly worried that counting enters/leaves will cause problems and desync (there's a ton of ways to leave a browser window without triggering a dragleave event, making you always +1)
Can we get away with a simple
isDragging
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is the only solution I've found... I don't think I quite understand what you mean by
isDragging
here. There seems to be aisDragging
method inreact-dnd
but I don't think this can be used here. What am I missing?