daniel-lundin/react-dom-confetti

SCRIPT5045: Assignment to read-only properties is not allowed in strict mode

wojtekmaj opened this issue · 6 comments

Hi!
On Microsoft Edge, this is the error I'm getting ~1 second after clicking the button.
Confetti never comes. :(

That's too bad :(
Do you get any stack trace telling you where it happens?
I don't have access to Edge a.t.m..

You apparently can't just apply new classList like that:

image

I guess you should use classList.add('fetti') for that. But whatever your transpiler does, breaks it up.

Stack is minified so there's not much of a use... :(

Actually, you have fixed it already, only your demo page still is not updated.

daniel-lundin/dom-confetti@f0ca578#diff-1c90ff38a08209f9ebd4d05d1e43358eL14

Ahh, yes I remember something about removing an unnecessary class. I will update the demo page, thanks for noticing!

FYI it's working like a charm, no more Edge-specific issues :)

Great, thanks fot acknowledging!