You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the moveTo method in ngx-flicking to move to a panel at a given index, an error occurs. The method is called with the index of the panel as its argument, but the following error message is thrown:
Error: Uncaught (in promise): FlickingError: Index "0" is out of range: should be between 0 and -1.
FlickingError: Index "0" is out of range: should be between 0 and -1. at new FlickingError (FlickingError.ts:34:5)
The NgxFlickingComponent is properly initialized, and the indexes of the flicking-panels are being passed correctly. It works as expected, but an error message is still occurring.
When we checked the demo using moveTo in ngAfterViewInit, the issue you left did not reproduce properly.
Can we check a demo or repository that reproduces the issue you left?
Description
When using the moveTo method in ngx-flicking to move to a panel at a given index, an error occurs. The method is called with the index of the panel as its argument, but the following error message is thrown:
The NgxFlickingComponent is properly initialized, and the indexes of the flicking-panels are being passed correctly. It works as expected, but an error message is still occurring.
Steps to check or reproduce
https://stackblitz.com/edit/stackblitz-starters-edv3e7?file=src%2Fmain.ts
Here is the link. Please check the error messages logged in the devTools console.
Thank you.
The text was updated successfully, but these errors were encountered: