-
-
Notifications
You must be signed in to change notification settings - Fork 929
Closed
Description
I had this "Invalid Argument" error on otherwise working code:
After some digging it looks like IE needs a valid DOM argument for the second argument of insertBefore. I'm not sure if in Mithril this always has to be a valid argument and I'm somehow making a mistake in my code. However changing the line from this:
parentElement.insertBefore(dummy, parentElement.childNodes[change.index])
to this, solved the problem:
parentElement.insertBefore(dummy, parentElement.childNodes[change.index] || null)
I'm using Mithril 0.1.22
Metadata
Metadata
Assignees
Labels
No labels