Add radix to parseInt
This commit is contained in:
parent
7bea1548a1
commit
c6c7405217
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ class Carousel extends BaseComponent {
|
|||
const indicators = SelectorEngine.find(SELECTOR_INDICATOR, this._indicatorsElement)
|
||||
|
||||
for (let i = 0; i < indicators.length; i++) {
|
||||
if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to')) === this._getItemIndex(element)) {
|
||||
if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to'), 10) === this._getItemIndex(element)) {
|
||||
indicators[i].classList.add(CLASS_NAME_ACTIVE)
|
||||
indicators[i].setAttribute('aria-current', 'true')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue