Skip to content

Commit

Permalink
Fix dynamic ID assigned to tabbed carousels
Browse files Browse the repository at this point in the history
  • Loading branch information
dotherightthing committed Sep 23, 2020
1 parent c0285a4 commit 9fac792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/classes/tabbed-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TabbedCarousel {
.substring(1);
};

this.instanceElement.setAttribute('id', `singleselectlistbox-${randomNumber()}-${randomNumber()}`);
this.instanceElement.setAttribute('id', `tabbedcarousel-${randomNumber()}-${randomNumber()}`);
}

this.instanceId = this.instanceElement.getAttribute('id');
Expand Down
2 changes: 1 addition & 1 deletion js/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ class TabbedCarousel {
.substring(1);
};

this.instanceElement.setAttribute('id', `singleselectlistbox-${randomNumber()}-${randomNumber()}`);
this.instanceElement.setAttribute('id', `tabbedcarousel-${randomNumber()}-${randomNumber()}`);
}

this.instanceId = this.instanceElement.getAttribute('id');
Expand Down

0 comments on commit 9fac792

Please sign in to comment.