Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
riot+compiler.js:1245 Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node - when adding to an 'each' structure from a recursively created element onlick #1962
Help us to manage our issues by answering the following:
In riot v2.6.1 I get:
when I try to add the first element to an 'each' structure on an 'onclick' of an element that was generated recursively.
When I change the following line:
The problem seems to go away, although I don't know whether or not this is a solution.
Unfortunately, when I try to reproduce the recursive tag structure like I have in my app, using the jsfiddle template, I get a stack overflow, even though this doesn't happen in my app when I am using tag files etc.
Here is what I have so far:
http://jsfiddle.net/26dxw9ox/3/ (Just a stack overflow crash upon start, so doesn't reproduce the issue yet)
Windows 10, Chrome
The issue is still there in
My fix looked like this:
Not sure if this is optimal, but it works so far.