Skip to content

Commit

Permalink
Update src/widgets/dragAndDrop.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
  • Loading branch information
timea-solid and TallTed authored Aug 16, 2023
1 parent 28cb8ab commit cd2c84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/dragAndDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as style from '../style'

export function makeDropTarget (ele, droppedURIHandler, droppedFileHandler) {
const dragoverListener = function (e) {
e.preventDefault() // Need else drop does not work [sic]
e.preventDefault() // Need this; otherwise, drop does not work.
e.dataTransfer.dropEffect = 'copy'
}

Expand Down

0 comments on commit cd2c84a

Please sign in to comment.