Cyan005

Results comments of Cyan005

I set the value as such for the onClickItem: ``` onClickItem={(index) => { this.clickBanner(index); }} private clickBanner(index): void { window.location.href = this.buildNewsLink(this.state.newsBannerItems[index]); } ``` I'm not setting the state but...

Alright yeah... I setup the exact same scenario and was able to recreate the issue you're seeing. Spent a few minutes debugging to see where the problem was living and...

Yeah, I was all over those functions. Unfortunately through debugging, all of the numbers passed in and out of those were exactly as expected. The only 'off' thing I could...

So yeah, that does work because that if statement is always 0 !== 0 so it never goes into it. That may be a band aid for this small case,...

I see part of what may be going on. When it enters the IF statement, calling this.moveTo(nextProps.selectedItem) triggers the onChange handler again to be hit twice hence why we are...

Did a very quick hard coded test for the single use case of the 2nd click. If you bypass the second handleOnChange, the next slide works no issue. Just need...

So just using the forked example (guess I didn't need to fork to discover this), the area of my code that isn't being set properly is however being set within...

This seems to be the problem... this.refs for the carouselWrapper is not available on the first load when setupAutoPlay is being executed. However, once the page is ready it's available...

Ok, pinpointed the main issue and difference. **Works:** ``` Title Stuff Here.. Read More ``` **Does Not Work:** ``` { this.state.newsBannerItems.map((item, key) => { return ( {item.Title}... Read More );...

And... switching from using the state object to passing in as a prop resolves this issue. I can get away with using this scenario for what I need. However, if...