From a149ff29ed4b6793f8d2a5b982190f19d73b35ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Norba=CC=88ck=20Olivers?= Date: Sat, 25 Mar 2017 12:15:47 +0100 Subject: [PATCH] Fix dragging on Firefox --- src/Html5/DragDrop.elm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Html5/DragDrop.elm b/src/Html5/DragDrop.elm index daa01d3..8738da9 100644 --- a/src/Html5/DragDrop.elm +++ b/src/Html5/DragDrop.elm @@ -148,6 +148,7 @@ draggable wrap drag = [ attribute "draggable" "true" , on "dragstart" <| Json.succeed <| wrap <| DragStart drag , on "dragend" <| Json.succeed <| wrap <| DragEnd + , attribute "ondragstart" "event.dataTransfer.setData('text/plain', '');" ]