norpan / elm-html5-drag-drop

Dragging and dropping in Elm using the HTML 5 API
http://package.elm-lang.org/packages/norpan/elm-html5-drag-drop/latest
BSD 3-Clause "New" or "Revised" License
60 stars 17 forks source link

Should this work with elm-css? #23

Closed nilskuhn closed 2 years ago

nilskuhn commented 2 years ago

I try to use this within a project using elm-css and elm-font-awesome-5.

"rtfeldman/elm-css": "17.0.1",
"frandibar/elm-font-awesome-5": "1.0.0"

Getting the following runtime error (endless loop):

elm.js:2842 Uncaught TypeError: Cannot set property className of #<SVGElement> which has only a getter
    at _VirtualDom_applyFacts (elm.js:2842)
    at _VirtualDom_applyPatch (elm.js:3719)
    at _VirtualDom_applyPatchesHelp (elm.js:3702)
    at _VirtualDom_applyPatches (elm.js:3693)
    at elm.js:4066
    at updateIfNeeded (elm.js:4600)

So it looks like somehow, I ran into this bug/problem. Before I try to find our for myself where this comes from: Did anyone tested / used this library together with elm-css?

nilskuhn commented 2 years ago

Sorry, had a wrong import (percentage from FontAwesome instead of Css) and that caused a runtime crash. Thaught it was related to integration of elm-html5-drag-drop. This is quite annoying :(.