Html – not able to scroll two elements simultaneously
in reactjs, I have a function that scrolls elements when given a useRef: ref.current?.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center", }); When this function is called on multiple elements at once, only the one that is called first will actually…