-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Open
Description
Prerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
Describe the issue
.carousel('to')
Cycles the carousel to a particular frame (0 based, similar to an array). Returns to the caller before the next item has been shown (i.e. before the slid.bs.carousel event occurs).
It's difficult to determine what is meant by this. Probably one of the more obvious assumptions might be that the API is .carousel('to', 0).
Then this page shows (incorrect) examples:
$('#myCarousel').carousel('1')
This will result in unknown method errors.
...
Instead the undocumented approach of $('#myCarousel').carousel(1) must be used. Somehow Google search AI summary knew about this.
When recognising a number being passed it will jump to that frame.
Reduced test cases
$('#myCarousel').carousel('to', 1)
$('#myCarousel').carousel('1')
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
4.6 website documentation