This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
uib-carousel : deleting a slide causes incorrect indexing of active slide #6320
Open
Description
Bug description:
Deleting a slide incorrectly indexes the active
variable passed to the uib-carousel
directive.
Steps to reproduce
- Stay on the first slide
- Click
Remove slide
Observed
The active
index which is passed in from the controller is set one.
NOTE: You seem to be able to click through the deck for awhile but eventually it gets stuck which is probably due to the active index getting out of sync.
Expected
I'd expect that the active
index should be set to zero when the first slide has been deleted.
If my assumptions are incorrect, apologies, but I read through the documentation/bugs and couldn't find a resolution.
Link to minimally-working plunker that reproduces the issue:
https://plnkr.co/edit/CDKUwpbJ9iHaurGHVL1Z?p=preview
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.8
UIBS: 2.2.0
Bootstrap: 3.3.7