React.Children.map issue
asmyshlyaev177 opened this issue · 1 comments
asmyshlyaev177 commented
Hi, tnx for library, it's good.
But having an issue when children are remapped, take a look on example https://codesandbox.io/p/sandbox/festive-elion-9lhxw5?file=%252Fsrc%252FApp.tsx and https://asmyshlyaev177.github.io/react-horizontal-scrolling-menu/?path=/story/examples-itemsanimation--items-animation
I'm adding empty div
between children for using it with scrollIntoView
api.
justin-schroeder commented
This is a key
issue. The root repeated items need to have a unique key — currently they are just cycling dom elements.