File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -406,12 +406,10 @@ class Carousel extends BaseComponent {
406
406
407
407
_setActiveIndicatorElement ( element ) {
408
408
if ( this . _indicatorsElement ) {
409
- const activeIndicators = SelectorEngine . find ( SELECTOR_ACTIVE , this . _indicatorsElement )
409
+ const activeIndicator = SelectorEngine . findOne ( SELECTOR_ACTIVE , this . _indicatorsElement )
410
410
411
- for ( let i = 0 ; i < activeIndicators . length ; i ++ ) {
412
- activeIndicators [ i ] . classList . remove ( CLASS_NAME_ACTIVE )
413
- activeIndicators [ i ] . removeAttribute ( 'aria-current' )
414
- }
411
+ activeIndicator . classList . remove ( CLASS_NAME_ACTIVE )
412
+ activeIndicator . removeAttribute ( 'aria-current' )
415
413
416
414
const indicators = SelectorEngine . find ( SELECTOR_INDICATOR , this . _indicatorsElement )
417
415
You can’t perform that action at this time.
0 commit comments