Pagination onChange Does Not Work

https://www.wix.com/corvid/reference/$w.Pagination.html#onChange

Pagination’s onChange does not seem to work. According to the documentation it says “Adds an event handler that runs when the pagination bar is changed”

But when I try to use the code it does nothing

export function pagination1_change(event) {
    let newValue = event.target.currentPage;
    console.log(newValue); //nothing happens
}

Try putting your pagination element id into the API code as shown below:

$w(“#pagination1”).onChange( (event) => {
let newValue = event.target.currentPage; // 4
console.log(newValue)
});

It should work