File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ export function useFileUpload({
86
86
// Global drag events with counter for robust dragOver state
87
87
const handleWindowDragEnter = ( e : DragEvent ) => {
88
88
if ( e . dataTransfer ?. types ?. includes ( "Files" ) ) {
89
- dragCounter . current ++ ;
89
+ dragCounter . current += 1 ;
90
90
setDragOver ( true ) ;
91
91
}
92
92
} ;
93
93
const handleWindowDragLeave = ( e : DragEvent ) => {
94
94
if ( e . dataTransfer ?. types ?. includes ( "Files" ) ) {
95
- dragCounter . current -- ;
95
+ dragCounter . current -= 1 ;
96
96
if ( dragCounter . current <= 0 ) {
97
97
setDragOver ( false ) ;
98
98
dragCounter . current = 0 ;
@@ -204,7 +204,7 @@ export function useFileUpload({
204
204
const items = e . clipboardData . items ;
205
205
if ( ! items ) return ;
206
206
const files : File [ ] = [ ] ;
207
- for ( let i = 0 ; i < items . length ; i ++ ) {
207
+ for ( let i = 0 ; i < items . length ; i += 1 ) {
208
208
const item = items [ i ] ;
209
209
if ( item . kind === "file" ) {
210
210
const file = item . getAsFile ( ) ;
You can’t perform that action at this time.
0 commit comments