Skip to content

Commit

Permalink
Slideshow previous button disabled fix (Shopify#1032)
Browse files Browse the repository at this point in the history
* chck and make sure prev is disabled

* remove if statement
  • Loading branch information
ludoboludo committed Dec 16, 2021
1 parent 2a0a6fa commit 4306328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ class SlideshowComponent extends SliderComponent {
update() {
super.update();
this.sliderControlButtons = this.querySelectorAll('.slider-counter__link');
this.prevButton.removeAttribute('disabled');

if (!this.sliderControlButtons.length) return;

Expand Down

0 comments on commit 4306328

Please sign in to comment.