pnp / pnp/sp-dev-fx-controls-react
Carousel triggerPageEvent and interval issue.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 433
- Forks
- 418
- Avg merge
- 5d 6m
- Merged PRs (30d)
- 19
Description
Hi,
I try to use Carousel with triggerPageEvent option .
i use like this :
interval={(this.state.dynamicDelay )}
element={ this.state.currentCarouselElement}
canMoveNext={true}
canMovePrev={true}
triggerPageEvent={(vindex: number) => {this.triggerNextElement(vindex);}}
If i clik on next button , component has expected comportment : trigger nextelement is executed (twice ?), which modidy currentCarouselElement and image changes.
If interval i reached, : trigger nextelement is executed (once ?) , loading component (spin) appears but freez on it.
no error in log.
Something is missing ?
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Carousel implementation and the triggerPageEvent and interval entry points, then reproduce the reported behavior using the configuration in the issue. Done means the interval advances the carousel without freezing on the loading spinner and triggerNextElement is invoked with the expected frequency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100