When an item is selected, I am using the goTo method to activate that slide and also update the settings for my startIndex (this is because each panel that corresponds to a nav item loads content and modals and for some reason once you switch panels and expand a modal an error is returned from the nav component for a null element, so I set the startIndex to the clicked slides index).
I have four nav items - if I log the index of the clicked item in the click event it returns the expected index value. however, the goTo method will not go past the second item. I also am logging the slider info using the getInfo() method on click and the displayIndex, index and indexcached never update beyond the first two items.
I have removed the click event and just implemented a vanilla version of this and am still having the same problem.
I created a component for my slider, which I am using as a navbar - below is the render:
`render() { const {dashboard, navs} = this.props;
When an item is selected, I am using the goTo method to activate that slide and also update the settings for my startIndex (this is because each panel that corresponds to a nav item loads content and modals and for some reason once you switch panels and expand a modal an error is returned from the nav component for a null element, so I set the startIndex to the clicked slides index).
I have four nav items - if I log the index of the clicked item in the click event it returns the expected index value. however, the goTo method will not go past the second item. I also am logging the slider info using the getInfo() method on click and the displayIndex, index and indexcached never update beyond the first two items.
I have removed the click event and just implemented a vanilla version of this and am still having the same problem.
Thanks!