File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 8
8
isEvtWithFiles ,
9
9
isIeOrEdge ,
10
10
isPropagationStopped ,
11
- TOO_MANY_FILES_REJECTION
11
+ onDocumentDragOver ,
12
+ TOO_MANY_FILES_REJECTION ,
12
13
} from " ./../utils/index" ;
13
14
import { onMount , onDestroy , createEventDispatcher } from " svelte" ;
14
15
46
47
isDragReject: false ,
47
48
draggedFiles: [],
48
49
acceptedFiles: [],
49
- fileRejections: []
50
+ fileRejections: [],
50
51
};
51
52
52
53
let rootRef;
345
346
on: dragenter= {composeDragHandler (onDragEnterCb)}
346
347
on: dragover= {composeDragHandler (onDragOverCb)}
347
348
on: dragleave= {composeDragHandler (onDragLeaveCb)}
348
- on: drop= {composeDragHandler (onDropCb)}>
349
+ on: drop= {composeDragHandler (onDropCb)}
350
+ >
349
351
< input
350
352
{accept}
351
353
{multiple}
352
354
{required}
353
355
type= " file"
354
- name = {name}
356
+ {name}
355
357
autocomplete= " off"
356
358
tabindex= " -1"
357
359
on: change= {onDropCb}
358
360
on: click= {onInputElementClick}
359
361
bind: this = {inputRef}
360
- style= " display: none;" / >
362
+ style= " display: none;"
363
+ / >
361
364
< slot>
362
365
< p> Drag ' n' drop some files here, or click to select files< / p>
363
366
< / slot>
You can’t perform that action at this time.
0 commit comments