I\'m simply trying to apply HTML5 draggable=\'false\' attribute to some images but it\'s not working in Firefox browser. In Chrome working fine but on Firefox, after sele
Update of sorts, the solution doesn't work with React, however adding the below does.
onDragStart={(e) => { e.preventDefault() }}
EDIT: returning false for ondragstart no longer works for more modern versions of Firefox (credit: Hooman Askari), in which case use the below.
function dragStart(e) {
e.preventDefault()
}
...and on the element
ondragstart="dragStart(e)"