Anchor in a Repeater

Hello,

I found in a post someone trying to create a scroll to a specific repeater. However I made some modification for my site and the code is not working. can some please help with why and how to fix it?

What I want to achieve: I have two repeaters displaying the same data from a collection repeater 1 has a all the data and repeater 2 has only a button with the title I want when I select the button in repeater 2 it should scroll repeater 1 to the item (like a menu)

$w.onReady(function  () {
    $w('#repeater2').forEachItem(($item, itemData, index) => {
        let buttons = $item('#button1');
            $w('#repeater1').forEachItem(($item, itemData, index) => {
               
                buttons[index].onClick(() =>
			    	$item('#box99').scrollTo());
            });
        });
    });

According to the docs it’s not possible to scrollTo() an item in a Repeater:

If you’d like you can add this feature request to the roadmap: Product Roadmap