Closed francisco1508 closed 5 years ago
@francisco1508 Why did you close this? Same thing's happening to me. @kdeloach Any ideas?
Could you provide a code snippet to reproduce this error?
@kdeloach Yeah, it was a pretty complex thing, but shaved it off to this
const A = () =>
<>
<div style={{ width: 50, height: 50, marginRight: 40, background: 'white' }} className="c1" />
<div style={{ width: 50, height: 50, background: 'white' }} className="c2" />
<LineTo from="c1" to="c2" />
</>
I added a timeout for the line to render (500ms) and it works
Had the same problem. If you set delay property to 0 it works just fine.
Hi, So when i render an element on dom, the elements are connected. However when i scroll down, the lines remain fixed on the window and get detached from the dom elements that they are supposed to stay connected with.
Hi, So when i render an element on dom, the elements are connected. However when i scroll down, the lines remain fixed on the window and get detached from the dom elements that they are supposed to stay connected with.
did you able to resolve this?
Hello, I am using react-lineto in my app, but when my component is rendered the first time it is not working, until I make an event and it is rendered again the connection I want to use appears.
Also when I add a new line it appears scattered, then when it returns to render the component takes its proper place.