Closed
requested to merge github/fork/matan1008/bugfix/carousel-select-slide-without-active into main
Created by: matan1008
Description
Check that an active carousel indicator actually exists before trying to remove its active
class
Motivation & Context
In the current implementation, if no indicator has the active
class, selecting an indicator will throw an exception instead of selecting the desired one.
Type of changes
-
Bug fix (non-breaking change which fixes an issue)
Checklist
-
I have read the contributing guidelines -
My code follows the code style of the project (using npm run lint
) -
My change introduces changes to the documentation -
I have updated the documentation accordingly -
I have added tests to cover my changes -
All new and existing tests passed