I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
Current behavior:
When prepending slides it pops to the newly added slides
Expected behavior:
When prepending slides it should stay on the current slide
Steps to reproduce:
Create a slider and fill it with ngFor and a dynamic list of slides. Try adding a slide or more before the current slide. The slide now pops to the first slide
slides = newSlides.concat(slides);
Other information:
I think this is because when you add new slides the current slide index increases but the slides component still wants to show the old index
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Original issue by @RHinderiks on 2018-02-06T10:38:03Z
Ionic version: (check one with "x") (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [X] 3.x [ ] 4.x
I'm submitting a ... (check one with "x") [X] bug report [ ] feature request
Current behavior: When prepending slides it pops to the newly added slides
Expected behavior: When prepending slides it should stay on the current slide
Steps to reproduce: Create a slider and fill it with ngFor and a dynamic list of slides. Try adding a slide or more before the current slide. The slide now pops to the first slide
Other information: I think this is because when you add new slides the current slide index increases but the slides component still wants to show the old index
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):