Skip to content

Commit

Permalink
Merge pull request #118 from gdimitrov-propy/fix-disable-prev-arrow
Browse files Browse the repository at this point in the history
Fix for adding disable class and attribute on lg-prev button
  • Loading branch information
sachinchoolur authored Nov 27, 2018
2 parents 9669c18 + 3dd2980 commit 7300554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/lightgallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@ Plugin.prototype.arrowDisable = function(index) {
prev.removeAttribute('disabled');
utils.removeClass(prev, 'disabled');
} else {
next.setAttribute('disabled', 'disabled');
utils.addClass(next, 'disabled');
prev.setAttribute('disabled', 'disabled');
utils.addClass(prev, 'disabled');
}
}
};
Expand Down

0 comments on commit 7300554

Please sign in to comment.