question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusion on the "nextWhenVisible()" method on Carousel Component

See original GitHub issue

Hi everyone, I am currently using bootstrap 5 and while browsing through documentation, I have found that in the carousel component documentation, carousel.prototype.nextWhenVisible() function is not accurate with its description. Although carousel.prototype.to() function seems to be matched with the description (which is not found in the carousel component documentation, but can be found in the code).

I think that the function has been mismatched with the description, that have led me to a confusion.

The section that I am referring to: https://v5.getbootstrap.com/docs/5.0/components/carousel/#methods

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
XhmikosRcommented, Sep 30, 2020

There’s no need to ask for such things. Just grab an issue and submit a PR when ready.

I’m thinking we should add this statement somewhere…

1reaction
Johann-Scommented, Sep 29, 2020

Nice catch @JudgedPluto 👍

You’re right, the to method is missing and nextWhenVisible description is wrong

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap Carousel Add Method next when visible
i have a carousel from bootstrap all setup - now i want it not to change when not visible, because i have different...
Read more >
Best practices for carousels - web.dev
A carousel is a UX component that displays content in slideshow-like manner. Carousels can "autoplay" or be navigated manually by users.
Read more >
How to build a more accessible carousel or slider
When a slide is not visible on the screen, it should be hidden from all users either using CSS (like display: none or...
Read more >
Bootstrap carousel - CoreUI
Bootstrap carousel is a slideshow component for cycling through elements—images or slides of text—like a carousel.
Read more >
Carousel · Boosted v5.0
A slideshow component for cycling through elements—images or slides of text—like a carousel.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found