File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 230230 } ) ;
231231
232232 // Handle drag and drop files.
233- const dropZoneEl = document . querySelector ( '.drop-zone' ) ;
233+ const dropZoneEl = document . querySelector ( '.container' ) ;
234+ const dropUIEl = document . querySelector ( '.drop-zone' ) ;
234235 const onDragover = function ( e ) {
235236 e . preventDefault ( ) ;
236- dropZoneEl . classList . add ( 'dragover' ) ;
237+ dropUIEl . classList . add ( 'dragover' ) ;
237238 } ;
238239 const onDragLeave = function ( ) {
239- dropZoneEl . classList . remove ( 'dragover' ) ;
240+ dropUIEl . classList . remove ( 'dragover' ) ;
240241 } ;
241242 const onDrop = function ( e ) {
242243 e . preventDefault ( ) ;
243- dropZoneEl . classList . remove ( 'dragover' ) ;
244- dropZoneEl . classList . add ( 'drop' ) ;
244+ dropUIEl . classList . remove ( 'dragover' ) ;
245+ dropUIEl . classList . add ( 'drop' ) ;
245246
246247 const files = e . dataTransfer . files ;
247248 if ( files . length > 0 ) {
You can’t perform that action at this time.
0 commit comments